/**
 * BBQ食材量 計算ツール - 専用スタイル
 */

/* ===== カウンター（人数入力） ===== */
.bbq-counters {
	display: flex;
	flex-direction: column;
}

.bbq-counter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--color-border);
}

.bbq-counter:last-child {
	border-bottom: none;
}

.bbq-counter--sub {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px dashed var(--color-border);
	border-bottom: none;
}

.bbq-counter-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
}

.bbq-counter-label small {
	font-size: 11px;
	color: var(--color-text-muted);
	font-weight: 400;
}

/* ===== ステッパー ===== */
.bbq-stepper {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-white);
	flex-shrink: 0;
}

.bbq-step {
	width: 38px;
	height: 38px;
	border: none;
	background: var(--color-bg);
	color: var(--color-primary);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.bbq-step:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

.bbq-step:active {
	background: var(--color-accent-hover);
}

.bbq-step-input {
	width: 48px;
	height: 38px;
	border: none;
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	font-family: inherit;
	background: var(--color-white);
	-moz-appearance: textfield;
	appearance: textfield;
}

.bbq-step-input::-webkit-outer-spin-button,
.bbq-step-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bbq-step-input:focus {
	outline: none;
	background: rgba(224, 120, 80, 0.06);
}

/* ===== 時間セレクト ===== */
.bbq-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.bbq-field-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
}

.bbq-select {
	flex: 1;
	max-width: 220px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--color-text);
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

/* ===== 結果 ===== */
.bbq-result {
	margin-top: 20px;
}

.bbq-result-empty {
	padding: 28px 16px;
	text-align: center;
	color: var(--color-text-muted);
	font-size: 14px;
	background: var(--color-bg);
	border-radius: var(--radius);
}

.bbq-result-summary {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-white);
	background: var(--color-accent);
	padding: 10px 14px;
	border-radius: var(--radius);
	margin-bottom: 14px;
	line-height: 1.5;
}

.bbq-result-group {
	margin-bottom: 14px;
}

.bbq-result-group:last-child {
	margin-bottom: 0;
}

.bbq-result-group-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin-bottom: 4px;
}

.bbq-result-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bbq-result-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 4px;
	border-bottom: 1px solid var(--color-border);
}

.bbq-result-item:last-child {
	border-bottom: none;
}

.bbq-result-name {
	font-size: 14px;
	color: var(--color-text);
	flex-shrink: 0;
}

.bbq-result-amount {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-accent);
	text-align: right;
}

/* ===== 早見表 ===== */
.bbq-table-wrap {
	overflow-x: auto;
	margin: 6px 0 12px;
}

.bbq-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 420px;
}

.bbq-table th,
.bbq-table td {
	padding: 10px 12px;
	text-align: center;
	border: 1px solid var(--color-border);
}

.bbq-table thead th {
	background: var(--color-primary);
	color: var(--color-white);
	font-weight: 700;
	font-size: 13px;
}

.bbq-table tbody tr:nth-child(even) {
	background: var(--color-bg);
}

.bbq-table tbody td:first-child {
	font-weight: 700;
	color: var(--color-primary-dark);
}

/* ===== レスポンシブ ===== */
@media (max-width: 480px) {
	.bbq-counter-label {
		font-size: 13px;
	}

	.bbq-field {
		flex-direction: column;
		align-items: stretch;
	}

	.bbq-select {
		max-width: none;
	}
}
