/*
 * XO Event Calendar フロント（xo-event-calendar.css）の視覚仕様を
 * .c-clinic-calendar 配下に限定して再現。ルート外のスタイルは上書きしない。
 */

.c-clinic-calendar .xo-months > .xo-month-wrap:not(.is-active) {
	display: none;
}

/* カレンダー罫線（中間線含む）を1色・1太さに統一 */
.c-clinic-calendar {
	--c-cal-line: #dfdfdf;
	--c-cal-bd: 1px solid var(--c-cal-line);
}

.c-clinic-calendar .xo-event-calendar {
	font-family: "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic ProN", Meiryo, "MS PGothic", sans-serif;
	position: relative;
}

/* renew / css / styles.css フッター .xo-event-calendar と同系フォント */
.c-clinic-calendar #xo-event-calendar-1.xo-event-calendar,
.c-clinic-calendar #xo-event-calendar-1 {
	font-family: "游ゴシック体", "Yu Gothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
}

.c-clinic-calendar .xo-event-calendar table {
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	background-color: #fff;
	color: #333;
}

.c-clinic-calendar .xo-event-calendar table tr {
	display: table-row;
}

.c-clinic-calendar .xo-event-calendar table td,
.c-clinic-calendar .xo-event-calendar table th {
	display: table-cell;
	padding: 0;
}

.c-clinic-calendar .xo-event-calendar .xo-month {
	position: relative;
}

.c-clinic-calendar .xo-event-calendar table.xo-month {
	margin: 0 0 8px 0;
	padding: 0;
	border: var(--c-cal-bd);
	border-width: 1px 0 1px 1px;
	border-color: var(--c-cal-line);
}

.c-clinic-calendar .xo-event-calendar table.xo-month > caption {
	caption-side: top;
	text-align: center;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-header {
	margin: 2px 0 4px;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-header > span {
	display: inline-block;
	text-align: center;
	font-size: 120%;
	vertical-align: middle;
	line-height: 28px;
}

.c-clinic-calendar .xo-event-calendar table.xo-month button {
	margin: 0;
	padding: 0;
	color: #333;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
	width: 28px;
}

.c-clinic-calendar .xo-event-calendar table.xo-month button[disabled] {
	opacity: 0.3;
	cursor: default;
}

.c-clinic-calendar .xo-event-calendar table.xo-month button > span {
	width: 28px;
	height: 28px;
	line-height: 28px;
	font-size: 22px;
	text-align: center;
	vertical-align: middle;
}

.c-clinic-calendar .xo-event-calendar table.xo-month button span.nav-prev {
	display: inline-block;
	background: url("../images/theme-clinic-calendar-nav-prev.svg") no-repeat center center;
	background-size: 14px 18px;
	width: 28px;
	height: 28px;
	font-size: 0;
}

.c-clinic-calendar .xo-event-calendar table.xo-month button span.nav-next {
	display: inline-block;
	background: url("../images/theme-clinic-calendar-nav-next.svg") no-repeat center center;
	background-size: 14px 18px;
	width: 28px;
	height: 28px;
	font-size: 0;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-prev {
	float: left;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-next {
	float: right;
}

.c-clinic-calendar .xo-event-calendar table.xo-month > thead > tr > th {
	padding: 1px 0;
	text-align: center;
	font-size: 100%;
	font-weight: bold;
	border-style: solid;
	border-color: var(--c-cal-line);
	border-width: 0 1px 0 0;
}

.c-clinic-calendar .xo-event-calendar table.xo-month > thead th.sunday {
	color: #d00;
}

.c-clinic-calendar .xo-event-calendar table.xo-month > thead th.saturday {
	color: #00d;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-week {
	position: relative;
	padding: 0;
	border: 0;
	width: 100%;
	overflow: hidden;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-week table {
	border: 0;
	margin: 0;
	padding: 0;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-dayname {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	border-style: solid;
	border-color: var(--c-cal-line);
	border-width: 1px 0 0 1px;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-dayname td {
	padding: 0;
	border-style: solid;
	border-color: var(--c-cal-line);
	border-width: 1px 1px 0 0;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-dayname td div {
	height: 1000px;
	padding: 4px;
	border-style: solid;
	border-color: var(--c-cal-line);
	border-width: 1px 1px 0 0;
	text-align: right;
	font-size: 100%;
	line-height: 1.2em;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-dayname td div.other-month {
	opacity: 0.6;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-dayname td div.today {
	color: #00d;
	font-weight: bold;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-dayname-space {
	position: relative;
	top: 0;
	height: 1.5em;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-event {
	position: relative;
	top: 0;
	background-color: transparent;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-event td {
	padding: 0 1px 2px 1px;
	border-style: solid;
	border-color: var(--c-cal-line);
	border-width: 0 1px 0 0;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-event-space {
	height: 1.5em;
	background-color: transparent;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-event-space td {
	border-style: solid;
	border-color: var(--c-cal-line);
	border-width: 0 1px 0 0;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-event tr,
.c-clinic-calendar .xo-event-calendar table.xo-month .month-event-space tr {
	background-color: transparent;
}

.c-clinic-calendar .xo-event-calendar table.xo-month .month-event-title {
	padding: 0 3px;
	display: block;
	color: #666;
	text-align: left;
	font-size: 0.8em;
	background-color: #ccc;
	border-radius: 3px;
	white-space: nowrap;
	overflow: hidden;
}

.c-clinic-calendar .xo-event-calendar p.holiday-title {
	margin: 0;
	padding: 2px 0;
	font-size: 90%;
	vertical-align: middle;
}

.c-clinic-calendar .xo-event-calendar p.holiday-title span {
	margin: 0 6px 0 0;
	padding: 0 0 0 18px;
	border: var(--c-cal-bd);
	border-color: var(--c-cal-line);
}

.c-clinic-calendar .xo-event-calendar table.xo-month > tbody > tr > td.month-week {
	border: 0;
}

.widget .c-clinic-calendar .xo-event-calendar table.xo-month > thead th {
	font-size: 90%;
}

.c-clinic-calendar .xo-event-calendar .loading-animation {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -20px 0 0 -20px;
}

html[lang="ja"] .c-clinic-calendar .xo-event-calendar .dashicons {
	font-family: dashicons !important;
}

/*
 * renew / css / styles.css の #xo-event-calendar-1 ブロック相当
 *（曜日行の高さ・凡例の文字サイズ／色・キャプション・ボタン）
 */
.c-clinic-calendar #xo-event-calendar-1 table.xo-month > caption {
	padding: 0;
	line-height: 0;
}

.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-header {
	margin: 0 auto 10px;
}

.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-header > span {
	font-weight: bold;
}

.c-clinic-calendar #xo-event-calendar-1 table.xo-month > thead th {
	font-size: 14px;
	background: #f0f0f0;
	padding: 5px 0;
	line-height: 1.2;
}

.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-dayname td,
.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-event-space td,
.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-event td {
	font-size: 13px;
}

.c-clinic-calendar #xo-event-calendar-1 table.xo-month button {
	line-height: 0;
}

.c-clinic-calendar #xo-event-calendar-1 table.xo-month button > span {
	background: #aacd06;
	border-radius: 50%;
}

/* JS が境界外で prev/next を disabled にしたとき、緑ボタンも含めて半輝度（#xo-event-calendar-1 側が opacity:1 で打ち消さないようにする） */
.c-clinic-calendar #xo-event-calendar-1 table.xo-month button[disabled] {
	opacity: 0.5;
	cursor: default;
}

.c-clinic-calendar #xo-event-calendar-1 .dashicons-arrow-right-alt2:before,
.c-clinic-calendar #xo-event-calendar-1 .dashicons-arrow-left-alt2:before {
	color: #fff;
}

.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p,
.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p.holiday-title {
	display: inline-block;
	font-size: 12px;
	margin-right: 10px;
	color: #333;
	font-weight: normal;
}

.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p:last-child,
.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p.holiday-title:last-child {
	margin-right: 0;
}

.c-clinic-calendar #xo-event-calendar-1 p.holiday-title span {
	margin: 0 3px 0 0;
	border-color: var(--c-cal-line);
}

@media screen and (min-width: 960px) {
	.c-clinic-calendar #xo-event-calendar-1 table.xo-month > caption {
		font-size: 22px;
		height: 30px;
		margin-bottom: 10px;
	}

	.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-header {
		margin: 0 auto 0;
	}

	.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-header > span {
		font-weight: bold;
	}

	.c-clinic-calendar #xo-event-calendar-1 table.xo-month > thead th {
		font-size: 16px;
		padding: 10px 0;
	}

	.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-dayname td,
	.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-event-space td,
	.c-clinic-calendar #xo-event-calendar-1 table.xo-month .month-event td {
		font-size: 15px;
	}

	.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p,
	.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p.holiday-title {
		font-size: 16px;
		margin-right: 20px;
		color: #333;
	}

	.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p:last-child,
	.c-clinic-calendar #xo-event-calendar-1 .holiday-titles p.holiday-title:last-child {
		margin-right: 0;
	}

	.c-clinic-calendar #xo-event-calendar-1 p.holiday-title span {
		margin: 0 3px 0 0;
	}
}
