/* =================================================================
   ConstRoom 料金ページスタイル (KR-616)
   ================================================================= */

/* ===================================
   全体コンテナ
   =================================== */
.cr-pricing-page {
	max-width: 1400px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* ===================================
   セクション
   =================================== */
.cr-pricing-section {
	margin-bottom: 80px;
	padding: 60px 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.cr-pricing-section:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 施主様セクション（ブルー系） */
.cr-pricing-section--customer {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.08));
	border: 2px solid rgba(59, 130, 246, 0.15);
}

/* 工務店様セクション（オレンジ系） */
.cr-pricing-section--constructor {
	background: linear-gradient(135deg, rgba(245, 192, 71, 0.08), rgba(245, 192, 71, 0.12));
	border: 2px solid rgba(245, 192, 71, 0.2);
}

/* ===================================
   セクションヘッダー
   =================================== */
.cr-pricing-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.cr-pricing-section-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: #1a202c;
	letter-spacing: -0.02em;
}

.cr-pricing-section-description {
	font-size: 1.125rem;
	color: #4a5568;
	margin: 0;
	line-height: 1.6;
}

/* ===================================
   カードレイアウト
   =================================== */
.cr-pricing-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 32px;
	align-items: stretch;
}

@media (min-width: 768px) {
	.cr-pricing-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.cr-pricing-cards {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	}
}

/* ===================================
   プランカード
   =================================== */
.cr-pricing-card {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	border: 2px solid #e2e8f0;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cr-pricing-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
	border-color: #cbd5e0;
}

/* 推奨プラン */
.cr-pricing-card--recommended {
	border-color: #4299e1;
	border-width: 3px;
	box-shadow: 0 4px 20px rgba(66, 153, 225, 0.25);
}

.cr-pricing-section--constructor .cr-pricing-card--recommended {
	border-color: #d97706;
	box-shadow: 0 4px 20px rgba(217, 119, 6, 0.25);
}

.cr-pricing-card--recommended:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 16px 40px rgba(66, 153, 225, 0.35);
}

.cr-pricing-section--constructor .cr-pricing-card--recommended:hover {
	box-shadow: 0 16px 40px rgba(217, 119, 6, 0.35);
}

/* ===================================
   推奨バッジ
   =================================== */
.cr-pricing-badge {
	position: absolute;
	top: -2px;
	right: 24px;
	background: linear-gradient(135deg, #4299e1, #3182ce);
	color: #ffffff;
	padding: 8px 20px;
	border-radius: 0 0 12px 12px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
	z-index: 10;
}

.cr-pricing-section--constructor .cr-pricing-badge {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* ===================================
   カード内部
   =================================== */
.cr-pricing-card-inner {
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* カードタイトル */
.cr-pricing-card-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 24px 0;
	color: #1a202c;
	text-align: center;
	letter-spacing: -0.01em;
}

/* ===================================
   価格表示
   =================================== */
.cr-pricing-price-container {
	text-align: center;
	margin-bottom: 32px;
	padding: 24px 0;
	border-bottom: 2px solid #e2e8f0;
}

.cr-pricing-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
}

.cr-pricing-price-currency {
	font-size: 1.5rem;
	font-weight: 600;
	color: #4a5568;
}

.cr-pricing-price-amount {
	font-size: 3.5rem;
	font-weight: 800;
	color: #1a202c;
	line-height: 1;
	letter-spacing: -0.03em;
}

.cr-pricing-price-free {
	font-size: 3rem;
	font-weight: 800;
	color: #48bb78;
	line-height: 1;
}

.cr-pricing-price-period {
	font-size: 1.125rem;
	color: #718096;
	font-weight: 500;
}

/* ===================================
   機能リスト
   =================================== */
.cr-pricing-features {
	list-style: none;
	padding: 0;
	margin: 0 0 32px 0;
	flex-grow: 1;
}

.cr-pricing-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #2d3748;
}

.cr-pricing-feature-item:last-child {
	margin-bottom: 0;
}

.cr-pricing-feature-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #48bb78;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	margin-top: 2px;
}

.cr-pricing-feature-text {
	flex: 1;
}

/* ===================================
   CTAボタン
   =================================== */
.cr-pricing-cta-container {
	margin-top: auto;
}

.cr-pricing-cta-btn {
	display: block;
	width: 100%;
	padding: 16px 32px;
	background: linear-gradient(135deg, #3182ce, #2c5282);
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	border-radius: 12px;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
	border: none;
	cursor: pointer;
}

.cr-pricing-cta-btn:hover {
	background: linear-gradient(135deg, #2c5282, #2a4365);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(49, 130, 206, 0.4);
	color: #ffffff;
	text-decoration: none;
}

.cr-pricing-cta-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

/* 工務店セクションのCTAボタン */
.cr-pricing-section--constructor .cr-pricing-cta-btn {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.cr-pricing-section--constructor .cr-pricing-cta-btn:hover {
	background: linear-gradient(135deg, #d97706, #b45309);
	box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

/* アップグレードボタン（デフォルト：工務店向け） */
.cr-pricing-cta-btn--upgrade {
	background: linear-gradient(135deg, #805ad5, #6b46c1);
	box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}

.cr-pricing-cta-btn--upgrade:hover {
	background: linear-gradient(135deg, #6b46c1, #553c9a);
	box-shadow: 0 8px 20px rgba(128, 90, 213, 0.4);
}

/* 施主セクションのアップグレードボタン（ブルー系） */
.cr-pricing-section--customer .cr-pricing-cta-btn--upgrade {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cr-pricing-section--customer .cr-pricing-cta-btn--upgrade:hover {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* 準備中ボタン */
.cr-pricing-cta-btn--preparing {
	background: linear-gradient(135deg, #cbd5e0, #a0aec0);
	color: #718096;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: not-allowed;
	pointer-events: none;
}

.cr-pricing-cta-btn--preparing:hover {
	background: linear-gradient(135deg, #cbd5e0, #a0aec0);
	transform: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cr-pricing-section--constructor .cr-pricing-cta-btn--preparing {
	background: linear-gradient(135deg, #cbd5e0, #a0aec0);
}

.cr-pricing-section--constructor .cr-pricing-cta-btn--preparing:hover {
	background: linear-gradient(135deg, #cbd5e0, #a0aec0);
}

/* 購読済み表示 */
.cr-pricing-cta-subscribed {
	display: block;
	width: 100%;
	padding: 16px 32px;
	background: linear-gradient(135deg, #48bb78, #38a169);
	color: #ffffff;
	text-align: center;
	border-radius: 12px;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* ===================================
   アップグレード説明テキスト
   =================================== */
.cr-pricing-upgrade-note {
	margin: 24px 0 32px 0;
	padding: 16px 20px;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.04));
	border-left: 4px solid #3b82f6;
	border-radius: 8px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #4a5568;
	font-weight: 500;
}

.cr-pricing-section--constructor .cr-pricing-upgrade-note {
	background: linear-gradient(135deg, rgba(245, 192, 71, 0.08), rgba(245, 192, 71, 0.04));
	border-left-color: #f59e0b;
}

/* ===================================
   レスポンシブ対応
   =================================== */
@media (max-width: 767px) {
	.cr-pricing-page {
		padding: 40px 16px;
	}

	.cr-pricing-section {
		margin-bottom: 48px;
		padding: 40px 24px;
		border-radius: 16px;
	}

	.cr-pricing-section-header {
		margin-bottom: 32px;
	}

	.cr-pricing-section-title {
		font-size: 1.875rem;
	}

	.cr-pricing-section-description {
		font-size: 1rem;
	}

	.cr-pricing-cards {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.cr-pricing-card-inner {
		padding: 32px 24px;
	}

	.cr-pricing-card-title {
		font-size: 1.5rem;
		margin-bottom: 20px;
	}

	.cr-pricing-price-amount {
		font-size: 2.75rem;
	}

	.cr-pricing-price-free {
		font-size: 2.5rem;
	}

	.cr-pricing-feature-item {
		font-size: 0.875rem;
		margin-bottom: 12px;
	}

	.cr-pricing-cta-btn {
		padding: 14px 24px;
		font-size: 1rem;
	}

	/* 比較表のモバイル対応 */
	.cr-pricing-comparison-wrapper {
		margin-top: 32px;
	}

	.cr-pricing-comparison-scroll {
		margin: 0 -8px;
		padding: 0 8px;
	}

	.cr-pricing-comparison-scroll::after {
		width: 40px;
	}

	.cr-pricing-comparison-table {
		font-size: 0.875rem;
	}

	.cr-pricing-comparison-table th,
	.cr-pricing-comparison-table td {
		min-width: 80px;
		padding: 12px 8px;
		font-size: 0.8125rem;
	}

	.cr-pricing-comparison-table th[scope="row"] {
		position: static;
		min-width: 100px;
		max-width: 120px;
		font-size: 0.875rem;
		box-shadow: none;
	}

	.cr-pricing-comparison-row--price td {
		font-size: 1.125rem;
		padding: 16px 10px;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.cr-pricing-section-title {
		font-size: 2.25rem;
	}

	.cr-pricing-price-amount {
		font-size: 3rem;
	}
}

/* ===================================
   アクセシビリティ
   =================================== */
.cr-pricing-cta-btn:focus {
	outline: 3px solid #90cdf4;
	outline-offset: 2px;
}

.cr-pricing-section--constructor .cr-pricing-cta-btn:focus {
	outline-color: #fbd38d;
}

/* ===================================
   比較表
   =================================== */
.cr-pricing-comparison-wrapper {
	margin-top: 48px;
}

.cr-pricing-comparison-scroll {
	position: relative;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 -16px;
	padding: 0 16px;
}

/* スクロールインジケーター */
.cr-pricing-comparison-scroll::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 60px;
	height: 100%;
	background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
	pointer-events: none;
	z-index: 1;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.cr-pricing-comparison-table {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cr-pricing-comparison-table th,
.cr-pricing-comparison-table td {
	padding: 16px 20px;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.9375rem;
}

.cr-pricing-comparison-table thead th {
	background: #f8f9fa;
	font-weight: 700;
	color: #1a202c;
	border-bottom: 2px solid #cbd5e0;
}

.cr-pricing-comparison-table th[scope="row"] {
	position: sticky;
	left: 0;
	z-index: 2;
	text-align: left;
	font-weight: 600;
	background: #fafbfc;
	color: #2d3748;
	white-space: nowrap;
	box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.cr-pricing-comparison-table tbody tr:last-child th,
.cr-pricing-comparison-table tbody tr:last-child td {
	border-bottom: none;
}

.cr-pricing-comparison-row--price td {
	font-size: 1.25rem;
	font-weight: 700;
	color: #2c5282;
	padding: 20px;
}

.cr-pricing-section--constructor .cr-pricing-comparison-row--price td {
	color: #d97706;
}

.cr-pricing-check {
	color: #48bb78;
	font-weight: 700;
	font-size: 1.25rem;
}

.cr-pricing-dash {
	color: #a0aec0;
	font-size: 1rem;
}

/* スクリーンリーダー専用テキスト */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ===================================
   印刷対応
   =================================== */
@media print {
	.cr-pricing-section {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #cbd5e0;
	}

	.cr-pricing-card {
		page-break-inside: avoid;
		box-shadow: none;
	}

	.cr-pricing-cta-btn {
		background: #3182ce !important;
		color: #ffffff !important;
	}

	.cr-pricing-comparison-table {
		box-shadow: none;
		border: 1px solid #cbd5e0;
	}
}
