/**
 * 空き状況カレンダー（公開ページと管理画面で共用）
 *
 * 段落（p）の指定には .fs を前に付けています。テーマの本文用の書式
 * （.p-post-content p: 文字の大きさの継承と上下 28px の余白）より
 * 優先させるためです。
 *
 * 色はサイトの緑（#57ba95 / #0d9c6f）を基調にしています。小さな文字に
 * 使う緑だけは、読みやすさのために濃くしています。
 */

.fs {
	--fs-green: #57ba95;
	--fs-green-dark: #0d9c6f;
	--fs-green-text: #08704f;
	--fs-free-bg: #e6f5ee;
	--fs-free-hover: #c9ecdb;
	--fs-busy-bg: #e3e6e5;
	--fs-busy-text: #59625f;
	--fs-few: #c4531b;
	--fs-few-bg: #fff1e8;
	/* 要相談（2026-10-02）。予約あり（灰）とも空き（緑）とも見分けられる淡い琥珀色。 */
	--fs-ask: #96580f;
	--fs-ask-bg: #fdf1df;
	--fs-ask-line: #e8bd7d;
	--fs-ask-strong: #d99a45;
	--fs-line: #e4e9e7;
	--fs-line-strong: #cfd8d4;
	--fs-text: #26302d;
	--fs-muted: #6e6e6e;
	--fs-faint: #b9bfbd;
	--fs-sat: #2f6fb8;
	--fs-sun: #c93d3d;
	--fs-row: 28px;
	--fs-head: 54px;
	--fs-timecol: 46px;

	color: var(--fs-text);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.fs *,
.fs *::before,
.fs *::after {
	box-sizing: border-box;
}

.fs button {
	font: inherit;
	color: inherit;
	margin: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.fs button:disabled {
	cursor: default;
}

.fs :focus-visible {
	outline: 2px solid var(--fs-green-dark);
	outline-offset: 2px;
}

.fs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   ツールバー
   ------------------------------------------------------------------------ */

.fs-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 14px;
}

.fs-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.fs-today {
	flex-shrink: 0;
	height: 36px;
	white-space: nowrap;
	padding: 0 16px;
	border: 1px solid var(--fs-line-strong);
	border-radius: 18px;
	background: #fff;
	font-weight: 600;
	transition: background-color 0.15s, border-color 0.15s;
}

.fs-today:hover {
	background: #f3f8f6;
	border-color: var(--fs-green);
}

.fs-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	transition: background-color 0.15s;
}

.fs-step:hover:not(:disabled) {
	background: #edf3f0;
}

.fs-step:disabled {
	opacity: 0.3;
}

.fs-chevron {
	display: block;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

/* 週表示は左右、月表示は上下（GYM LOG と同じ上下送り）。 */
[data-step="prev"] .fs-chevron {
	transform: translateX(2px) rotate(135deg);
}

[data-step="next"] .fs-chevron {
	transform: translateX(-2px) rotate(-45deg);
}

.fs[data-view="month"] [data-step="prev"] .fs-chevron {
	transform: translateY(2px) rotate(-135deg);
}

.fs[data-view="month"] [data-step="next"] .fs-chevron {
	transform: translateY(-2px) rotate(45deg);
}

.fs .fs-title {
	margin: 0 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.fs-views {
	display: inline-flex;
	padding: 3px;
	border-radius: 20px;
	background: #edf1ef;
}

.fs-view {
	min-width: 52px;
	height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	font-weight: 600;
	color: var(--fs-muted) !important;
	transition: background-color 0.15s, color 0.15s;
}

.fs-view:hover {
	color: var(--fs-text) !important;
}

.fs-view[aria-pressed="true"] {
	background: #fff;
	color: var(--fs-green-text) !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fs .fs-hint {
	margin: -4px 0 12px;
	font-size: 13px;
	color: var(--fs-muted);
}

/* ---------------------------------------------------------------------------
   表示の枠（zoom はこの中で起こる）
   ------------------------------------------------------------------------ */

.fs-stage {
	overflow: hidden;
	border: 1px solid var(--fs-line-strong);
	border-radius: 10px;
	background: #fff;
}

.fs-zoom {
	transform-origin: 50% 40%;
	will-change: transform, opacity;
}

.fs-viewport {
	position: relative;
	overflow: hidden;
}

.fs-page {
	background: #fff;
}

.fs-page.is-outgoing {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	pointer-events: none;
}

/* ---------------------------------------------------------------------------
   月表示
   ------------------------------------------------------------------------ */

.fs-weekdays,
.fs-mgrid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.fs-weekdays {
	border-bottom: 1px solid var(--fs-line);
}

.fs-weekday {
	padding: 8px 0;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	color: var(--fs-muted);
}

.fs-weekday.is-wd6 {
	color: var(--fs-sat);
}

.fs-weekday.is-wd0 {
	color: var(--fs-sun);
}

.fs-mday {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 76px;
	padding: 6px 2px 8px;
	border: 0;
	border-right: 1px solid var(--fs-line);
	border-bottom: 1px solid var(--fs-line);
	border-radius: 0;
	background: #fff;
	text-align: center;
	transition: background-color 0.15s;
}

.fs-mday:nth-child(7n) {
	border-right: 0;
}

.fs-mday:nth-last-child(-n + 7) {
	border-bottom: 0;
}

button.fs-mday:hover {
	background: #f1f9f5;
}

.fs-mday-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 600;
}

.fs-mday.is-wd6 .fs-mday-num {
	color: var(--fs-sat);
}

.fs-mday.is-wd0 .fs-mday-num {
	color: var(--fs-sun);
}

.fs-mday.is-holiday .fs-mday-num {
	color: var(--fs-sun);
}

.fs-mday.is-today .fs-mday-num {
	background: var(--fs-green-dark);
	color: #fff;
}

.fs-mday-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 4px;
	line-height: 1.2;
}

.fs-mark {
	font-size: 19px;
	font-weight: 700;
}

.fs-mark-text {
	margin-top: 2px;
	font-size: 11px;
	font-weight: 600;
}

.fs-mday.is-open .fs-mday-status,
.fs-mday.is-phone .fs-mday-status {
	color: var(--fs-green-text);
}

.fs-mday.is-few .fs-mday-status {
	color: var(--fs-few);
}

.fs-mday.is-full .fs-mday-status {
	color: var(--fs-busy-text);
}

.fs-mday.is-off .fs-mday-status {
	color: var(--fs-ask);
}

.fs-mday.is-past .fs-mday-num {
	color: var(--fs-faint);
}

.fs-mday.is-outside {
	background: #fafbfb;
}

.fs-mday.is-outside > * {
	opacity: 0.45;
}

/* ---------------------------------------------------------------------------
   週表示
   ------------------------------------------------------------------------ */

.fs-timegrid {
	display: grid;
	grid-template-columns: var(--fs-timecol) minmax(0, 1fr);
	padding-bottom: 10px;
}

.fs-times {
	display: grid;
	grid-template-rows: var(--fs-head) repeat(var(--fs-rows), var(--fs-row));
	border-right: 1px solid var(--fs-line);
}

.fs-time {
	align-self: start;
	padding-right: 6px;
	font-size: 11px;
	line-height: 1;
	text-align: right;
	color: var(--fs-muted);
	transform: translateY(-50%);
	font-variant-numeric: tabular-nums;
}

.fs-cols-head,
.fs-cols {
	display: grid;
	grid-template-columns: repeat(var(--fs-days), minmax(0, 1fr));
}

.fs-cols-head {
	height: var(--fs-head);
	border-bottom: 1px solid var(--fs-line-strong);
}

.fs-colhead {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	border-left: 1px solid var(--fs-line);
}

.fs-colhead:first-child {
	border-left: 0;
}

.fs-colhead-date {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding: 3px 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	line-height: 1.15;
	transition: background-color 0.15s;
}

button.fs-colhead-date:hover {
	background: #edf3f0;
}

.fs-colhead-wd {
	font-size: 11px;
	font-weight: 700;
	color: var(--fs-muted);
}

.fs-colhead-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	border-radius: 13px;
	font-size: 16px;
	font-weight: 700;
}

.fs-colhead.is-wd6 .fs-colhead-wd,
.fs-colhead.is-wd6 .fs-colhead-num {
	color: var(--fs-sat);
}

.fs-colhead.is-wd0 .fs-colhead-wd,
.fs-colhead.is-wd0 .fs-colhead-num {
	color: var(--fs-sun);
}

.fs-colhead.is-holiday .fs-colhead-wd,
.fs-colhead.is-holiday .fs-colhead-num {
	color: var(--fs-sun);
}

.fs-colhead.is-today .fs-colhead-num {
	background: var(--fs-green-dark);
	color: #fff;
}

/* 月表示で押した日。週表示へ移ったあと、どの日から来たかが分かるように。 */
.fs-colhead.is-picked {
	background: #eef8f3;
	box-shadow: inset 0 -3px 0 var(--fs-green);
}

.fs-col.is-picked {
	background-color: #f7fcf9;
}

.fs-colhead.is-past .fs-colhead-num,
.fs-colhead.is-past .fs-colhead-wd {
	color: var(--fs-faint);
}

.fs-col {
	display: grid;
	grid-template-rows: repeat(var(--fs-rows), var(--fs-row));
	min-width: 0;
	border-left: 1px solid var(--fs-line);
	/* 30 分ごとの細線と、1 時間ごとの線。 */
	background-image:
		linear-gradient(to bottom, var(--fs-line-strong) 1px, transparent 1px),
		linear-gradient(to bottom, var(--fs-line) 1px, transparent 1px);
	background-size: 100% calc(var(--fs-row) * 2), 100% var(--fs-row);
}

.fs-col:first-child {
	border-left: 0;
}

.fs-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 2px 3px 1px;
	padding: 0 4px;
	overflow: hidden;
	border: 0;
	border-radius: 5px;
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	grid-column: 1;
}

.fs-slot-label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.fs-slot.is-free {
	background: var(--fs-free-bg);
	color: var(--fs-green-text);
	font-weight: 600;
	transition: background-color 0.12s, color 0.12s;
}

.fs-slot.is-free:hover {
	background: var(--fs-free-hover);
}

.fs-slot.is-free.is-selected,
.fs-slot.is-phone.is-selected {
	background: var(--fs-green-dark);
	color: #fff;
}

.fs-slot.is-busy {
	background: var(--fs-busy-bg);
	color: var(--fs-busy-text);
	font-weight: 600;
}

.fs-slot.is-busy .fs-slot-label {
	display: block;
	max-width: 100%;
}

/* 1 時間以上の予約の帯には、時刻を 2 行目に添えます。 */
.fs-slot-range {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.fs-slot.is-phone {
	background: #f1f9f5;
	border: 1px dashed var(--fs-green);
	color: var(--fs-green-text);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.fs-slot.is-phone .fs-slot-label {
	white-space: normal;
}

/* 要相談の枠。公開ページでは押すと相談の案内が出る。 */
.fs-slot.is-ask {
	background: var(--fs-ask-bg);
	border: 1px dashed var(--fs-ask-line);
	color: var(--fs-ask);
	font-weight: 600;
}

.fs-slot.is-ask .fs-slot-label {
	display: block;
	max-width: 100%;
}

/* 休業日（土日・祝日など）は 1 日まるごと要相談。 */
.fs-slot.is-off {
	margin: 0;
	border-radius: 0;
	background: repeating-linear-gradient(135deg, #fdf7ee 0 8px, #f9efe0 8px 16px);
	color: var(--fs-ask);
	font-weight: 600;
}

button.fs-slot.is-ask:hover,
button.fs-slot.is-off:hover {
	background-color: #fae6c7;
}

button.fs-slot.is-off:hover {
	background: repeating-linear-gradient(135deg, #fbefdd 0 8px, #f6e3c8 8px 16px);
}

.fs-slot.is-ask.is-selected,
.fs-slot.is-off.is-selected {
	box-shadow: inset 0 0 0 2px var(--fs-ask-strong);
}

.fs-slot.is-past {
	margin: 0;
	border-radius: 0;
	background: rgba(244, 245, 245, 0.85);
}

/* 週表示: 空き枠は「空き」だけ。狭い画面では色だけにします。 */
.fs-timegrid--week .fs-slot-time {
	display: none;
}

.fs-timegrid--week .fs-slot.is-off .fs-slot-label {
	writing-mode: vertical-rl;
	letter-spacing: 0.3em;
}

/* ---------------------------------------------------------------------------
   凡例・最終更新
   ------------------------------------------------------------------------ */

.fs-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-top: 10px;
}

.fs-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: var(--fs-muted);
}

.fs-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.fs-legend-item::before {
	content: none;
}

.fs-legend-swatch {
	width: 14px;
	height: 14px;
	border-radius: 3px;
}

.fs-legend-item.is-free .fs-legend-swatch,
.fs-legend-item.is-open .fs-legend-swatch {
	background: var(--fs-free-bg);
	box-shadow: inset 0 0 0 1px var(--fs-green);
}

.fs-legend-item.is-few .fs-legend-swatch {
	background: var(--fs-few-bg);
	box-shadow: inset 0 0 0 1px var(--fs-few);
}

.fs-legend-item.is-busy .fs-legend-swatch,
.fs-legend-item.is-full .fs-legend-swatch {
	background: var(--fs-busy-bg);
}

.fs-legend-item.is-ask .fs-legend-swatch {
	background: var(--fs-ask-bg);
	box-shadow: inset 0 0 0 1px var(--fs-ask-line);
}

.fs-legend-item.is-off .fs-legend-swatch {
	background: repeating-linear-gradient(135deg, #fdf7ee 0 3px, #f1dcbc 3px 5px);
}

.fs[data-view="month"] .fs-legend-swatch {
	display: none;
}

.fs .fs-updated {
	margin: 0;
	font-size: 12px;
	color: var(--fs-muted);
}

.fs .fs-updated.is-error {
	color: var(--fs-sun);
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   公開ページ: 空き枠を押したときの案内
   ------------------------------------------------------------------------ */

.fs-detail {
	position: relative;
	margin-top: 16px;
	padding: 18px 20px;
	border: 1px solid var(--fs-green);
	border-radius: 10px;
	background: #f4fbf7;
	animation: fs-detail-in 0.18s ease-out;
}

.fs-detail[hidden] {
	display: none;
}

@keyframes fs-detail-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

.fs-detail-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 18px !important;
	line-height: 1;
	color: var(--fs-muted) !important;
}

.fs-detail-close:hover {
	background: #e3f1ea;
}

.fs .fs-detail-when {
	margin: 0 32px 4px 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--fs-green-text);
}

.fs .fs-detail-text {
	margin: 0 0 14px;
	font-size: 13px;
}

.fs-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 20px;
	border: 1px solid var(--fs-green-dark);
	border-radius: 22px;
	background: #fff;
	font-weight: 700;
	color: var(--fs-green-text) !important;
	text-decoration: none !important;
	transition: background-color 0.15s, opacity 0.15s;
}

.fs-btn:hover {
	background: #e8f6ef;
}

.fs-btn--primary {
	background: var(--fs-green-dark);
	color: #fff !important;
}

.fs-btn--primary:hover {
	background: var(--fs-green-dark);
	opacity: 0.88;
}

/* ---------------------------------------------------------------------------
   管理画面
   ------------------------------------------------------------------------ */

.fs--admin .fs-slot.is-free,
.fs--admin .fs-slot.is-busy,
.fs--admin .fs-slot.is-ask {
	cursor: pointer;
	user-select: none;
}

.fs--admin .fs-slot.is-free {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--fs-line);
}

.fs--admin .fs-slot.is-free:hover {
	background: var(--fs-free-bg);
}

.fs--admin .fs-slot.is-busy {
	background: #7d8a85;
	color: #fff;
}

.fs--admin .fs-slot.is-busy:hover {
	background: #6a7672;
}

.fs--admin .fs-slot.is-ask {
	border: 0;
	background: var(--fs-ask-strong);
	color: #fff;
}

.fs--admin .fs-slot.is-ask:hover {
	background: #c98a37;
}

.fs--admin .fs-legend-item.is-ask .fs-legend-swatch {
	background: var(--fs-ask-strong);
	box-shadow: none;
}

.fs--admin .fs-legend-item.is-free .fs-legend-swatch {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--fs-line-strong);
}

.fs--admin .fs-legend-item.is-busy .fs-legend-swatch {
	background: #7d8a85;
}

.fs--admin {
	--fs-head: 76px;
}

.fs-closed-toggle {
	padding: 1px 8px;
	border: 1px solid var(--fs-line-strong);
	border-radius: 10px;
	background: #fff;
	font-size: 10px !important;
	line-height: 1.5;
	white-space: nowrap;
	color: var(--fs-muted) !important;
}

.fs-closed-toggle:hover {
	border-color: var(--fs-green);
	color: var(--fs-text) !important;
}

.fs-closed-toggle[aria-pressed="true"] {
	border-color: var(--fs-green-dark);
	color: var(--fs-green-text) !important;
}

/* ---------------------------------------------------------------------------
   管理画面: 繰り返しの予定（2026-10-06）
   ------------------------------------------------------------------------ */

/* 繰り返しの予定の帯。手で入れた帯と同じ色に、細い斜線を重ねて見分けます。 */
.fs--admin .fs-slot.is-repeat {
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 12px);
}

.fs--admin .fs-slot.is-selected {
	box-shadow: 0 0 0 2px var(--fs-text);
}

.fs-repeat-icon {
	margin-right: 2px;
	font-weight: 400;
}

.fs--admin .fs-legend-item.is-repeat .fs-legend-swatch {
	background: #7d8a85 repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0 3px, transparent 3px 6px);
}

.fs--admin .fs-detail {
	border-color: var(--fs-line-strong);
	background: #fafbfb;
}

.fs--admin .fs-detail-when {
	color: var(--fs-text);
}

.fs-btn--small {
	min-height: 34px;
	padding: 4px 14px;
	font-size: 13px !important;
}

.fs-btn--danger {
	border-color: var(--fs-sun);
	color: var(--fs-sun) !important;
}

.fs-btn--danger:hover {
	background: #fdeeee;
}

/* 選択枠（編集中の予定）。Google カレンダーと同じく、上下の丸で伸び縮みする。 */
.fs-sel {
	--fs-sel: var(--fs-green-dark);
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 1px 2px;
	border: 2px solid var(--fs-sel);
	border-radius: 6px;
	background: rgba(125, 138, 133, 0.28);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: #2e3633;
	cursor: move;
	touch-action: none;
	user-select: none;
	grid-column: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.fs-sel.is-busy {
	--fs-sel: #4f5c58;
}

.fs-sel.is-ask {
	--fs-sel: #c98a37;
	background: rgba(217, 154, 69, 0.3);
	color: #6b3f08;
}

.fs-sel-label {
	overflow: hidden;
	pointer-events: none;
}

.fs-sel-handle {
	position: absolute;
	width: 14px;
	height: 14px;
	border: 3px solid var(--fs-sel);
	border-radius: 50%;
	background: #fff;
	cursor: ns-resize;
	touch-action: none;
}

/* 指でつかみやすいよう、見た目より広い範囲で反応させる。 */
.fs-sel-handle::before {
	content: '';
	position: absolute;
	inset: -12px;
}

.fs-sel-handle.is-top {
	top: -8px;
	left: 6px;
}

.fs-sel-handle.is-bottom {
	right: 6px;
	bottom: -8px;
}

/* 編集シート。画面の下に出す（Google カレンダーのスマートフォン版と同じ）。 */
.fs-sheet {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	max-width: 560px;
	max-height: 70vh;
	margin: 0 auto;
	overflow-y: auto;
	padding: 12px 20px 20px;
	border: 1px solid var(--fs-line-strong);
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	background: #fff;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
	animation: fs-sheet-in 0.18s ease-out;
}

.fs-sheet[hidden],
.fs-sheet [hidden] {
	display: none !important;
}

.fs-sheet:focus {
	outline: none;
}

@keyframes fs-sheet-in {
	from {
		transform: translateY(24px);
		opacity: 0;
	}
}

.fs-sheet-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.fs .fs-sheet-title {
	flex: 1;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--fs-text);
}

.fs-sheet-close {
	width: 36px;
	height: 36px;
	border: 1px solid var(--fs-line-strong);
	border-radius: 50%;
	background: #fff;
	font-size: 18px !important;
	line-height: 1;
}

.fs-sheet-close:hover {
	background: #f1f4f3;
}

.fs-kind {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}

.fs-kind-opt {
	flex: 1;
	cursor: pointer;
}

.fs-kind-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fs-kind-opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	border: 1px solid var(--fs-line-strong);
	border-radius: 19px;
	font-size: 14px;
	font-weight: 600;
}

.fs-kind-opt span::before {
	content: '';
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: #7d8a85;
}

.fs-kind-opt.is-ask span::before {
	background: var(--fs-ask-strong);
}

.fs-kind-opt input:checked + span {
	border-color: var(--fs-green-dark);
	box-shadow: 0 0 0 1px var(--fs-green-dark);
	background: #f1f9f5;
}

.fs-kind-opt input:focus-visible + span {
	outline: 2px solid var(--fs-green-dark);
	outline-offset: 2px;
}

.fs-sheet-when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 12px;
}

.fs-sheet-scope-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 16px;
}

.fs-sheet-scope-options .fs-check {
	font-size: 14px;
}

.fs-field {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 10px;
}

.fs-field-label {
	flex: none;
	width: 5em;
	font-size: 13px;
	font-weight: 600;
	color: var(--fs-muted);
}

.fs-field-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}

.fs-field-body--stack {
	flex-direction: column;
	align-items: flex-start;
}

.fs-check {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	white-space: nowrap;
}

.fs-sheet .fs-num {
	width: 4.5em;
}

.fs .fs-rule-note {
	margin: 4px 0 8px;
	font-size: 12px;
	color: var(--fs-muted);
}

.fs .fs-rule-error {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fs-sun);
}

.fs .fs-rule-error:empty {
	display: none;
}

/* ---------------------------------------------------------------------------
   狭い画面
   ------------------------------------------------------------------------ */

@media (max-width: 599px) {
	.fs {
		--fs-timecol: 38px;
		--fs-head: 50px;
	}

	.fs--admin {
		--fs-head: 72px;
	}

	.fs-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.fs-views {
		align-self: stretch;
	}

	.fs-view {
		flex: 1;
	}

	/* 週の見出し（2026年9月28日〜10月4日）は長いので、1 行を使います。 */
	.fs-nav {
		flex-wrap: wrap;
	}

	.fs .fs-title {
		order: -1;
		flex-basis: 100%;
		margin: 0 0 4px;
		font-size: 17px;
	}

	.fs-mday {
		min-height: 58px;
		padding-top: 4px;
	}

	.fs-mark-text {
		display: none;
	}

	.fs-timegrid--week .fs-slot {
		margin: 1px;
		padding: 0;
		font-size: 10px;
	}

	.fs-timegrid--week .fs-slot.is-free .fs-slot-label {
		display: none;
	}

	.fs-timegrid--week .fs-slot.is-phone .fs-slot-label {
		writing-mode: vertical-rl;
	}

	.fs-timegrid--week .fs-slot.is-phone br {
		display: none;
	}

	.fs-timegrid--week .fs-slot.is-busy .fs-slot-label,
	.fs-timegrid--week .fs-slot.is-ask .fs-slot-label {
		font-size: 10px;
	}

	.fs-timegrid--week .fs-slot-range {
		display: none;
	}


	.fs-colhead-num {
		font-size: 14px;
		min-width: 24px;
		height: 24px;
	}

	.fs-closed-toggle {
		padding: 1px 4px;
		font-size: 9px !important;
	}

	.fs-timegrid--week .fs-closed-toggle {
		writing-mode: horizontal-tb;
	}

	.fs-detail-actions .fs-btn {
		flex: 1 1 100%;
	}

	.fs-sheet {
		padding: 10px 16px 16px;
	}
}
