/**
 * 年間お手入れカレンダーツール スタイル
 */

/* ========================================
   12ヶ月カレンダーグリッド
   ======================================== */
.care-calendar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.care-month {
	display: flex;
	flex-direction: column;
	padding: 12px 10px;
	border-radius: var(--radius);
	border: 2px solid var(--color-border);
	background: var(--color-bg);
	cursor: pointer;
	transition: all 0.2s ease;
	min-height: 80px;
}

.care-month:hover {
	border-color: #3A5A25;
	box-shadow: 0 2px 8px rgba(93, 140, 62, 0.15);
}

.care-month--current {
	border-color: #5D8C3E;
	background: #f1f8e9;
	box-shadow: 0 0 0 2px rgba(93, 140, 62, 0.25);
}

.care-month--current .care-month__label {
	color: #3A5A25;
}

.care-month--expanded {
	border-color: #3A5A25;
	background: #e8f5e9;
	box-shadow: 0 0 0 3px rgba(93, 140, 62, 0.3);
}

.care-month__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.care-month__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
}

.care-month__current-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	background: #3A5A25;
	color: #fff;
	border-radius: 10px;
}

.care-month__tasks {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

/* ========================================
   作業行
   ======================================== */
.care-task {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--color-text-secondary);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.care-task-icon {
	flex-shrink: 0;
	width: 18px;
	text-align: center;
	font-size: 12px;
}

.care-task-label {
	flex-shrink: 0;
	font-weight: 600;
	font-size: 10px;
	color: var(--color-text);
	min-width: 36px;
}

.care-task-value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ========================================
   詳細展開ボックス
   ======================================== */
.care-detail-box {
	padding: 16px;
	background: #f9fdf6;
	border: 1px solid #c5e1a5;
	border-radius: var(--radius);
}

.care-detail-box__title {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: #3A5A25;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.care-detail-box__title-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	background: #3A5A25;
	color: #fff;
	border-radius: 10px;
}

.care-detail-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.care-detail-item {
	display: flex;
	gap: 10px;
	padding: 10px 12px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.care-detail-item__icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	background: #f1f8e9;
	border-radius: var(--radius);
}

.care-detail-item__content {
	flex: 1;
	min-width: 0;
}

.care-detail-item__label {
	font-size: 12px;
	font-weight: 700;
	color: #3A5A25;
	margin-bottom: 2px;
}

.care-detail-item__text {
	font-size: 13px;
	color: var(--color-text);
	line-height: 1.6;
}

/* ========================================
   地域補正表示
   ======================================== */
.care-region-note {
	margin-top: 12px;
	padding: 10px 12px;
	background: #fff8e1;
	border: 1px solid #ffcc80;
	border-left: 4px solid #f57c00;
	border-radius: var(--radius);
	font-size: 12px;
	color: #e65100;
	line-height: 1.6;
}

.care-region-note strong {
	color: #bf360c;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
	.care-calendar {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

@media (max-width: 480px) {
	.care-calendar {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}

	.care-month {
		padding: 10px 8px;
		min-height: 70px;
	}

	.care-month__label {
		font-size: 13px;
	}

	.care-task {
		font-size: 10px;
	}

	.care-task-icon {
		width: 14px;
		font-size: 10px;
	}

	.care-task-label {
		display: none;
	}

	.care-detail-item {
		flex-direction: column;
		gap: 6px;
	}

	.care-detail-item__icon {
		width: 28px;
		height: 28px;
		font-size: 16px;
	}
}
