/**
 * レジン量計算ツール - 専用スタイル
 * （共通スタイルは handmade-common.css を参照）
 */

/* ========================================
   レジン種別カード（2択）
   ======================================== */
.resin-type-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.resin-type-card {
	display: block;
	cursor: pointer;
	margin: 0;
}

.resin-type-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.resin-type-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 14px;
	background: var(--color-bg);
	border: 2px solid var(--color-border);
	border-radius: var(--radius);
	transition: all 0.2s ease;
	text-align: center;
}

.resin-type-card:hover .resin-type-content {
	border-color: #b87333;
	background: var(--color-white);
}

.resin-type-card input[type="radio"]:checked+.resin-type-content {
	border-color: #b87333;
	background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
	box-shadow: 0 2px 8px rgba(184, 115, 51, 0.15);
}

.resin-type-name {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
}

.resin-type-detail {
	font-size: 12px;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

.resin-type-card input[type="radio"]:checked+.resin-type-content .resin-type-name {
	color: #8b5a2b;
}

/* ========================================
   エポキシ比率プリセット
   ======================================== */
.ratio-preset-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.ratio-preset {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 20px;
	font-size: 13px;
	color: var(--color-text);
	cursor: pointer;
	transition: all 0.2s ease;
}

.ratio-preset:hover {
	border-color: #b87333;
	background: var(--color-white);
}

.ratio-preset input[type="radio"] {
	margin: 0;
	cursor: pointer;
}

.ratio-preset input[type="radio"]:checked+span {
	color: #8b5a2b;
	font-weight: 700;
}

.ratio-preset:has(input[type="radio"]:checked) {
	border-color: #b87333;
	background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
}

.custom-ratio-input {
	margin-top: 14px;
	padding: 14px;
	background: var(--color-bg);
	border-radius: var(--radius);
}

/* ========================================
   硬化不良アラート
   ======================================== */
.alert-box {
	margin-top: 14px;
	padding: 14px;
	background: #fff3e0;
	border: 1px solid #ffa726;
	border-left: 4px solid #f57c00;
	border-radius: var(--radius);
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.alert-icon {
	flex-shrink: 0;
	font-size: 20px;
	color: #f57c00;
	line-height: 1.2;
}

.alert-text {
	flex: 1;
	font-size: 13px;
	color: #5d4037;
	line-height: 1.7;
}

.alert-text strong {
	color: #bf360c;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 600px) {
	.resin-type-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ratio-preset-row {
		flex-direction: column;
	}

	.ratio-preset {
		justify-content: flex-start;
	}
}
