/* テーブル装飾 */
.member-price-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 10px auto; /* ← これで中央寄せ */
	font-size: clamp(1.3rem, 3.5vw, 1.5rem);
	table-layout: auto;
	border: 2px solid #888;
	background-color: #ffffff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	text-align: center;
}

.member-price-table th:first-child,
.member-price-table td:first-child {
	width: 40%;  /* 左列を狭く */
}

.member-price-table th:nth-child(2),
.member-price-table td:nth-child(2) {
	width: 60%;  /* 右列を広く */
}
.member-price-table td.amount {
	text-align: center;
	font-weight: bold;
	color: #d32f2f;
	background-color: #fff7f7;
	position: relative;
	padding: 10px 90px 10px 36px; /* 左はアイコン分、右はバッジ用スペース */
	vertical-align: middle;
	white-space: nowrap;
}

.member-price-table th {
	background-color: #e0eaf6;
	color: #002B60;
	font-weight: bold;
	padding: 10px;
	border: 1px solid #aaa;
	text-align: center;
}

.member-price-table td {
	border: 1px solid #aaa;
	padding: 10px 12px;
	background-color: #fff;
	vertical-align: middle;
	white-space: nowrap;
}

/* 金額左のアイコン */
.member-price-table td.amount::before {
	content: "★";
	color: #f39c12;
	font-size: 1.4rem;
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

/* 特典（+¥150など）のバッジ */
.member-price-table td.amount .bonus {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block;
	padding: 4px 10px;
	background-color: #fff3cd;
	color: #856404;
	border-radius: 9999px;
	font-size: 1.2rem;
	font-weight: 600;
	white-space: nowrap;
}

.point-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.point-table th,
.point-table td {
	border: 1px solid #ccc;
	padding: 12px;
	text-align: center;
	font-size: 1.5rem;
}

.point-table th {
	background-color: #FFEB99;
	color: #333;
}

/* 注意書き */
.member-notice {
	font-size: 1.3rem;
	color: #555;
	margin-top: 20px;
	line-height: 1.6;
}

.member-flex-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	align-items: flex-start;
	padding: 10px 0;
	/* 以下を追加：視認性アップの装飾 */
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	max-width: 960px;
	max-height: auto;
	margin: 0 auto;
}

.member-left {
	flex: 1 1 360px;
	max-width: 480px;
	text-align: left;
	padding: 8px;
}

.member-left p {
	font-size: 1.6rem;
	line-height: 1.8;
	color: #222;
	margin-bottom: 12px;
}

.member-left h4 {
	font-size: 1.8rem;
	margin-bottom: 16px;
	color: #005bac;
	text-align: center;
}

.member-right {
	flex: 1 1 400px;
	max-width: 600px;
	margin: 10px auto; /* ← 中央寄せだが左右余白を制限してしまう要因 */
	text-align: center;
}

.member-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 10px auto;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.amount {
	color: #e53935;
	font-weight: bold;
	text-align: left;
}

.point-table.compact {
	font-size: 1.3rem;
	margin-top: 16px;
}

.point-table.compact th,
.point-table.compact td {
	padding: 8px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
	.member-flex-wrapper {
		flex-direction: column;
		gap: 12px;
		border-radius: 8px;
		align-items: stretch; /* ← 子要素をブロック的に縦に並べる */
	}

	.member-left{
		flex: 1 1 100%;
		max-width: 100%;
	}
	.member-right {
		margin: 0 5px;         /* ← 不要な中央寄せを解除 */
		max-width: 100%;   /* ← 固定幅を解除して横幅いっぱいに */
		padding: 0;        /* ← パディングも明示的に0 */
	}

	.member-price-table {
		max-width: 100%;   /* ← 表も横幅制限を解除 */
	}
	.point-table.compact {
		font-size: 1.2rem;
	}

	.member-price-table th,
	.member-price-table td,
	.point-table th,
	.point-table td {
		padding: 4px;
		font-size: 1.3rem;
	}

	.member-price-table td.amount::before {
		left: 12px;
	}
	.member-price-table td.amount {
		padding: 10px 80px 10px 32px; /* 右側に+20pxの余白確保 */
	}

	.member-price-table td.amount .bonus {
		right: 0; /* スマホではやや内側に寄せて衝突回避 */
		font-size: 1.1rem; /* スマホでは小さめにするのもあり */
		max-width: 80px;
		text-align: right;
	}

	.member-left p {
		font-size: 1.4rem;
	}

	.member-left h4 {
		font-size: 1.6rem;
	}
}
