.lebois-calendar {
	--lebois-ink: #24221f;
	--lebois-paper: #ffffff;
	--lebois-frame: #918b83;
	--lebois-blue: #2996cf;
	--lebois-red: #dc3e3a;
	--lebois-soft-line: rgba(36, 34, 31, .82);
	--lebois-muted: #6d6860;
	box-sizing: border-box;
	max-width: 680px;
	margin: 1.5rem auto;
	padding: clamp(12px, 3vw, 26px) clamp(26px, 4.5vw, 42px);
	background: var(--lebois-paper);
	border: 0;
	color: var(--lebois-ink);
	font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", sans-serif;
	font-weight: 400;
	letter-spacing: .025em;
}
/* 紙版の配置。外枠は付けず、月見出しと日付を中央に。 */
.lebois-calendar { padding: 16px 9px; }
.lebois-calendar .lebois-cal-header { justify-content: center; margin-bottom: 6px; padding: 0; container-type: inline-size; }
.lebois-calendar .lebois-cal-brand { display: none; }
.lebois-calendar .lebois-cal-heading { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: clamp(6px, 2cqw, 13px); }
.lebois-calendar .lebois-cal-year { display: inline; order: 0; grid-column: 1; grid-row: 1; justify-self: end; font-size: clamp(15px, 5cqw, 32px); }
.lebois-calendar .lebois-cal-month-number { grid-column: 2; grid-row: 1; justify-self: center; font-weight: 700; font-size: clamp(58px, 15cqw, 90px); }
.lebois-calendar .lebois-cal-month-name { grid-column: 3; grid-row: 1; justify-self: start; font-size: clamp(15px, 5cqw, 32px); }
.lebois-calendar .lebois-cal-dow { min-height: 24px; color: var(--lebois-ink); }
.lebois-calendar .lebois-cal-dow > span { display: none; }
.lebois-calendar .lebois-cal-dow i { display: block; margin-top: 0; font-size: clamp(7px, 1.5vw, 10px); }
.lebois-calendar .lebois-cal-day { text-align: center; container-type: inline-size; }
.lebois-calendar .lebois-cal-date { display: block; font-weight: 700; }
.lebois-calendar .lebois-cal-marks { flex-wrap: nowrap; justify-content: flex-start; align-items: center; min-height: min(30cqw, 30px); gap: 1px; }
.lebois-calendar .lebois-cal-mark { width: 26cqw; height: 22cqw; max-width: 26px; max-height: 22px; font-size: clamp(7px, 10cqw, 11px); flex-shrink: 0; }
.lebois-calendar .lebois-cal-mark.product-campagne { width: 30cqw; height: 30cqw; max-width: 30px; max-height: 30px; border-radius: 50%; }
.lebois-calendar .lebois-cal-mark { position: relative; padding: 0; border: 0; text-indent: 0; letter-spacing: 0; -webkit-text-size-adjust: none; text-size-adjust: none; }
.lebois-calendar .lebois-cal-mark-label { position: absolute; left: 50%; top: 50%; display: block; width: auto; margin: 0; padding: 0; font-family: Arial, sans-serif; font-size: inherit; font-weight: 400; line-height: 1; white-space: nowrap; transform: translate(-50%, -50%); }
.lebois-calendar .lebois-cal-holiday { display: block; margin-top: 1px; font-size: clamp(5px, 14cqw, 9px); line-height: 1.1; white-space: nowrap; color: inherit; }
.lebois-calendar .has-holiday .lebois-cal-day-note { margin-top: 2px; }
.lebois-calendar .lebois-cal-footnote { container-type: inline-size; margin: 6px 0 0; padding: 0; text-align: center; color: var(--lebois-muted); }
.lebois-calendar .lebois-cal-footnote > span { display: block; font-family: inherit; font-size: min(9px, 2.35cqw) !important; font-weight: 400; line-height: 1.5; letter-spacing: 0; white-space: nowrap; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.lebois-calendar *, .lebois-calendar *::before, .lebois-calendar *::after { box-sizing: border-box; }
.lebois-calendar .lebois-cal-config { display: none !important; }
.lebois-cal-notice {
	margin: 0 0 18px;
	padding: 10px 14px;
	border-left: 3px solid var(--lebois-blue);
	background: rgba(41, 150, 207, .07);
	font-size: 14px;
	line-height: 1.7;
}
.lebois-cal-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.lebois-cal-heading { display: flex; align-items: baseline; gap: clamp(6px, 1.4vw, 13px); min-width: 0; }
.lebois-cal-month-number,
.lebois-cal-month-name,
.lebois-cal-year {
	color: var(--lebois-month-color, var(--lebois-blue));
	font-family: "Century Gothic", CenturyGothic, "Avenir Next", Futura, sans-serif;
	letter-spacing: -.035em;
}
.lebois-cal-month-number { font-size: clamp(46px, 8vw, 74px); font-weight: 500; line-height: .78; }
.lebois-cal-month-name { font-size: clamp(22px, 4.6vw, 40px); line-height: 1; white-space: nowrap; }
.lebois-cal-year { font-size: clamp(12px, 2vw, 17px); }
.lebois-cal-brand { display: grid; justify-items: center; flex: 0 0 auto; text-align: center; }
.lebois-cal-brand img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 3px; }
.lebois-cal-brand strong { font-family: "Century Gothic", CenturyGothic, "Avenir Next", Futura, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: -.025em; }
.lebois-cal-brand span { margin-top: 2px; font-size: 11px; }
.lebois-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	position: relative;
	width: 100%;
}
.lebois-cal-dow {
	display: grid;
	place-content: center;
	min-width: 0;
	min-height: 44px;
	padding: 4px 2px 7px;
	text-align: center;
	font-size: 13px;
	line-height: 1;
}
.lebois-cal-dow i { display: block; margin-top: 5px; font: 400 10px/1 "Century Gothic", CenturyGothic, "Avenir Next", sans-serif; }
.lebois-cal-dow.is-sunday { color: var(--lebois-ink); }
.lebois-cal-day {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 1 / 1;
	padding: clamp(5px, .9vw, 9px);
}
/* 細く少し揺れる、紙版の手描き罫線。各マスの右辺・下辺をわずかにずらす。 */
.lebois-cal-day::before,
.lebois-cal-day::after {
	content: "";
	position: absolute;
	pointer-events: none;
	background: var(--lebois-soft-line);
	transform-origin: center;
}
.lebois-cal-day::before { top: -1px; right: 0; bottom: -1px; width: 1px; transform: rotate(var(--lebois-line-v, .18deg)); }
.lebois-cal-day::after { left: -1px; right: -1px; bottom: 0; height: 1px; transform: rotate(var(--lebois-line-h, -.18deg)); }
.lebois-cal-day:nth-of-type(3n) { --lebois-line-v: -.22deg; --lebois-line-h: .12deg; }
.lebois-cal-day:nth-of-type(4n) { --lebois-line-v: .27deg; --lebois-line-h: -.09deg; }
.lebois-cal-day:nth-of-type(5n) { --lebois-line-v: -.13deg; --lebois-line-h: .22deg; }
.lebois-cal-day:nth-of-type(7n) { --lebois-line-v: .08deg; --lebois-line-h: -.25deg; }
.lebois-cal-day:nth-child(7n + 1) { border-left: 1px solid var(--lebois-soft-line); }
.lebois-cal-day:nth-child(n + 8):nth-child(-n + 14) { border-top: 1px solid var(--lebois-soft-line); }
.lebois-cal-day:nth-last-child(-n + 7) { border-bottom-color: transparent; }
.lebois-cal-grid.has-sketch-grid .lebois-cal-day::before,
.lebois-cal-grid.has-sketch-grid .lebois-cal-day::after { display: none; }
.lebois-cal-grid.has-sketch-grid .lebois-cal-day { border: 0; }
.lebois-cal-sketch-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.lebois-cal-sketch-primary { fill: none; stroke: #4f4a44; stroke-width: .82; stroke-linecap: round; stroke-linejoin: round; opacity: .66; vector-effect: non-scaling-stroke; }
.lebois-cal-sketch-ghost { fill: none; stroke: #69635c; stroke-width: .42; stroke-linecap: round; opacity: .24; vector-effect: non-scaling-stroke; transform: translate(.35px,.28px); }
.lebois-cal-date {
	position: relative;
	z-index: 1;
	font-family: "Century Gothic", CenturyGothic, "Avenir Next", Futura, sans-serif;
	font-size: clamp(16px, 2.8vw, 25px);
	font-weight: 400;
	letter-spacing: -.04em;
	line-height: 1;
}
.lebois-cal-day.is-closed { color: var(--lebois-red); }
.lebois-cal-day-note {
	position: relative;
	z-index: 1;
	display: block;
	margin-top: clamp(3px, .6vw, 7px);
	font-size: clamp(8px, 1.25vw, 11px);
	line-height: 1.2;
	overflow-wrap: anywhere;
}
.lebois-cal-day-note { color: var(--lebois-note-color, inherit); }
.lebois-cal-day-note.is-open-note { color: var(--lebois-note-color, var(--lebois-blue)); }
.lebois-cal-marks {
	position: absolute;
	z-index: 2;
	right: clamp(3px, .7vw, 7px);
	bottom: clamp(3px, .7vw, 7px);
	left: clamp(3px, .7vw, 7px);
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: flex-end;
	gap: clamp(2px, .35vw, 4px);
}
.lebois-cal-mark {
	display: inline-grid;
	place-items: center;
	width: clamp(18px, 3vw, 26px);
	height: clamp(18px, 3vw, 26px);
	border-radius: 50%;
	background: var(--mark-color);
	color: #fff;
	font: 400 clamp(8px, 1.3vw, 11px)/1 "Century Gothic", CenturyGothic, "Avenir Next", sans-serif;
	letter-spacing: -.04em;
}
.lebois-cal-mark.product-poivre { border-radius: 5px; }
.lebois-cal-mark.product-campagne { width: clamp(22px, 3.5vw, 31px); }
.lebois-calendar .lebois-cal-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin: 14px 0 0; padding: 0; font-size: 12px; line-height: 1.5; }
.lebois-calendar .lebois-cal-legend-item { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; max-width: 100%; }
.lebois-calendar .lebois-cal-legend-name { overflow-wrap: anywhere; }
.lebois-calendar .lebois-cal-legend .lebois-cal-mark { width: 22px; height: 19px; max-width: none; max-height: none; font-size: 10px; }
.lebois-calendar .lebois-cal-legend .lebois-cal-mark.product-campagne { width: 26px; height: 26px; }
.lebois-cal-nav { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 3vw, 25px); margin-top: 18px; }
.lebois-cal-nav button {
	min-height: 42px;
	padding: 7px 10px;
	border: 0;
	background: transparent;
	color: var(--lebois-ink);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.lebois-cal-nav button:hover { color: var(--lebois-blue); }
.lebois-calendar .lebois-cal-nav button:disabled { visibility: hidden !important; pointer-events: none; }
.lebois-cal-nav button:focus-visible { outline: 2px solid var(--lebois-blue); outline-offset: 2px; }
.lebois-cal-current { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 680px) {
	.lebois-calendar { padding: 10px 9px 16px; }
	.lebois-cal-header { padding: 0 5px; }
	.lebois-cal-brand strong { font-size: 12px; }
	.lebois-cal-brand span { font-size: 9px; }
	.lebois-cal-brand img { width: 40px; height: 40px; }
	.lebois-cal-dow { min-height: 37px; font-size: 11px; }
	.lebois-cal-dow i { font-size: 8px; }
	.lebois-cal-day { padding: 4px; }
	.lebois-cal-date { font-size: clamp(14px, 4.8vw, 19px); }
	.lebois-cal-day-note { font-size: clamp(7px, 2.15vw, 9px); }
	.lebois-cal-marks { right: 2px; bottom: 2px; left: 2px; flex-wrap: nowrap; gap: 1px; }
	.lebois-cal-mark { width: 12px; height: 12px; font-size: 6px; }
	.lebois-cal-mark.product-campagne { width: 16px; }
}
@media (max-width: 390px) {
	.lebois-cal-year { display: none; }
	.lebois-cal-month-name { font-size: 19px; }
	.lebois-cal-brand span { display: none; }
	.lebois-cal-dow i { display: none; }
}
