/* PRICE（料金プラン）ページ用スタイル
 * ページタイトル・パンくず・CATEGORY / INFORMATION は page.css（共通） */

/*==================== 月額・年割の切り替え ====================*/
/* .price-list の data-billing（monthly / yearly）と同じ値の data-billing-show を持つ要素だけ表示する */
.price-list[data-billing="monthly"] [data-billing-show="yearly"],
.price-list[data-billing="yearly"] [data-billing-show="monthly"] {
	display: none;
}

.price-list {
	padding-bottom: 0; /* 下の CATEGORY との間は CATEGORY 側の上余白に任せる */
}

.price-toggle {
	display: flex;
	width: fit-content;
	margin: 48px auto 0;
	padding: 4px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	background: #fff;
}
.price-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 156px;
	min-height: 40px;
	padding: 8px 24px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--sec-text);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.price-toggle__btn[aria-pressed="true"] {
	background: #56728e;
	color: #fff;
	cursor: default;
}
.price-toggle__btn:focus-visible {
	outline: 3px solid var(--sec-blue);
	outline-offset: 2px;
}
.price-toggle__badge {
	padding: 4px 6px;
	border-radius: 4px;
	background: #35d35d;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

/*==================== プランのカード ====================*/
.price-plans {
	display: grid;
	/* 細長くならないよう、1枚の幅は 304px 以上を保つ（入りきらなくなったら1列にする） */
	grid-template-columns: repeat(3, minmax(304px, 360px));
	justify-content: center;
	gap: 24px;
	margin-top: 20px;
}
.price-plan {
	--plan-color: #2da6ff;
	--plan-head: var(--plan-color);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid var(--plan-color);
	border-radius: 16px;
	background: #fff;
}
.price-plan--professional {
	--plan-color: #4cc6ba;
	--plan-head: linear-gradient(90deg, #4ec8b8, #1692fc);
}
.price-plan--business {
	--plan-color: #195b97;
}
.price-plan__name {
	display: grid;
	place-items: center;
	min-height: 60px;
	padding: 8px 16px;
	box-sizing: border-box;
	background: var(--plan-head);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-align: center;
}
.price-plan__body {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 32px;
}
.price-plan__summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.price-plan__price {
	display: flex;
	align-items: baseline;
	color: #33383f;
	line-height: 1;
}
.price-plan__amount {
	font-size: 40px;
	font-weight: 500;
	letter-spacing: 0.02em;
}
.price-plan__per {
	margin-left: 2px;
	font-size: 14px;
	white-space: nowrap;
}
.price-plan__tax {
	font-size: 12px;
}
/* 年額の定価（打ち消し線）と、年割でお得になる金額 */
.price-plan__yearly {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	color: #ff7d13;
	font-size: 14px;
	line-height: 1.2;
}
.price-plan__yearly s {
	color: #adb5bd;
}
.price-plan__save b {
	font-size: 11px;
	font-weight: 600;
}
.price-plan__target {
	color: var(--sec-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.05em;

}

/* 機能の一覧：使える機能はチェック、使えない機能はバツで薄く表示 */
.price-plan__features {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.price-plan__feature {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #33383f;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
}
.price-plan__feature::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background: url("../img/icon-plan-check.svg") center / contain no-repeat;
}
.price-plan__feature--off {
	color: #adb5bd;
}
.price-plan__feature--off::before {
	background-image: url("../img/icon-plan-cross.svg");
}

/*==================== 画面が狭まったら：余白を詰め、3枚が並ばなくなったら1列 ====================*/
@media screen and (max-width: 1100px) {
	.price-plan__body {
		padding: 24px;
	}
}
/* 3枚が 304px 以上で並ばなくなる幅になったら1列にする（3 × 304 + 余白 2 × 24 + 左右の余白） */
@media screen and (max-width: 1080px) {
	.price-plans {
		grid-template-columns: minmax(0, 480px);
	}
}
@media screen and (max-width: 900px) {
	.price-toggle {
		margin-top: 32px;
	}
}
@media screen and (max-width: 600px) {
	.price-toggle__btn {
		min-width: 0;
		padding-inline: 16px;
	}
}
