/* =====================================================
   シンプル営業日カレンダー — フロントエンドスタイル
   ===================================================== */

.mc-calendar-wrap {
	max-width: 680px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Meiryo", sans-serif;
	color: #1e293b;
	line-height: 1.4;
}

/* カレンダータイトル */
.mc-calendar-title {
	text-align: center;
	font-size: 1.15em;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 10px;
}

/* 月ナビゲーション */
.mc-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1e3a5f;
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px 8px 0 0;
}

.mc-nav-btn {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	padding: 2px 12px;
	border-radius: 4px;
	line-height: 1.4;
	transition: background 0.15s;
}

.mc-nav-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

.mc-current-month {
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.05em;
}

/* グリッド */
.mc-grid-container {
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}

.mc-front-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.mc-front-table thead th {
	background: #f1f5f9;
	text-align: center;
	padding: 8px 4px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	border-bottom: 1px solid #e2e8f0;
}

.mc-front-table thead th.mc-sun { color: #ef4444; }
.mc-front-table thead th.mc-sat { color: #3b82f6; }

.mc-front-table tbody td {
	border: 1px solid #f1f5f9;
	padding: 4px 3px;
	vertical-align: top;
	height: 68px;
	background: #fff;
}

.mc-front-table tbody td:empty,
.mc-front-table tbody td.mc-empty-cell {
	background: #f8fafc;
}

/* 日付番号 */
.mc-front-num {
	display: block;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 3px;
	line-height: 1;
}

.mc-front-day.mc-sun .mc-front-num { color: #ef4444; }
.mc-front-day.mc-sat .mc-front-num { color: #3b82f6; }

/* 今日 */
.mc-front-day.mc-today .mc-front-num {
	background: #1e3a5f;
	color: #fff !important;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 3px;
	font-size: 12px;
}

/* ラベル */
.mc-front-label {
	display: block;
	font-size: 10px;
	padding: 2px 4px;
	border-radius: 3px;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
	margin-bottom: 2px;
}

/* メモ */
.mc-front-memo {
	display: block;
	font-size: 9px;
	color: #64748b;
	padding: 0 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ローディング */
.mc-loading {
	text-align: center;
	padding: 48px 20px;
	color: #94a3b8;
	font-size: 14px;
}

/* 凡例 */
.mc-legend {
	margin-top: 12px;
}

.mc-legend-items {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mc-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #475569;
}

.mc-legend-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	flex-shrink: 0;
	display: inline-block;
}

/* ブロックエディタープレースホルダー */
.mc-block-placeholder {
	border: 2px dashed #cbd5e1;
	padding: 24px;
	text-align: center;
	color: #94a3b8;
	border-radius: 8px;
	font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 480px) {
	.mc-front-table tbody td { height: 54px; }
	.mc-front-num { font-size: 12px; }
	.mc-front-label { font-size: 9px; padding: 1px 3px; }
	.mc-front-memo { display: none; }
	.mc-calendar-title { font-size: 1em; }
}
