/**
 * HEGL Events の見た目。すべてのクラス名は hegl- で始まる(テーマのCSSとぶつからないため)。
 * 色や大きさを直したいときは、ここを編集する。
 */

/* ---- 共通 ---- */
.hegl-cal,
.hegl-cal *,
.hegl-list,
.hegl-list *,
.hegl-modal,
.hegl-modal * {
	box-sizing: border-box;
}
.hegl-cal {
	width: 100%;
	margin: 0 0 1.5em;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

/* ---- 見出し(前の月・月名・次の月) ---- */
.hegl-cal .hegl-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 8px;
}
.hegl-cal .hegl-cal-cap {
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	flex: 1 1 auto;
}
.hegl-cal .hegl-nav {
	appearance: none;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	color: #1b8ac7;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	line-height: 1.2;
	margin: 0;
	min-height: 0;
	min-width: 56px;
	padding: 6px 10px;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}
.hegl-cal .hegl-nav:hover {
	background: #f3f9fd;
}

/* ---- 表 ---- */
.hegl-cal .hegl-cal-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin: 0;
	border: 0;
	background: #fff;
}
.hegl-cal .hegl-cal-table th,
.hegl-cal .hegl-cal-table td {
	border: 1px solid #e3e3e3;
	padding: 0;
	vertical-align: top;
	background: #fff;
	color: inherit;
	text-align: left;
}
.hegl-cal .hegl-cal-table th {
	padding: 5px 4px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	background: #f6f6f6;
}
.hegl-cal .hegl-day {
	height: 76px;
	padding: 2px 0 2px;
}
.hegl-cal .hegl-dn {
	padding: 0 4px;
	font-size: 12px;
	line-height: 1.6;
}
.hegl-cal .hegl-other .hegl-dn {
	color: #bbb;
}
.hegl-cal .hegl-evs {
	margin-top: 1px;
}

/* ---- イベントの帯 ---- */
.hegl-cal .hegl-ev {
	appearance: none;
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0 0 2px;
	padding: 2px 4px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	white-space: normal;
	word-break: break-all;
	cursor: pointer;
}
.hegl-cal .hegl-ev:hover {
	opacity: 0.8;
}

/* ---- skin: xo(トップの説明会カレンダー風) ---- */
.hegl-skin-xo .hegl-cal-table th {
	background: #fff;
	font-weight: 400;
}
.hegl-skin-xo .hegl-cal-table .hegl-sat {
	color: #1e73be;
}
.hegl-skin-xo .hegl-cal-table .hegl-sun {
	color: #d33;
}
.hegl-skin-xo .hegl-cal-cap {
	font-size: 14px;
	font-weight: 400;
}
.hegl-skin-xo .hegl-nav {
	border: 0;
	background: transparent;
	font-size: 22px;
	min-width: 36px;
	color: #bbb;
}
.hegl-skin-xo .hegl-today .hegl-dn {
	color: #fff;
	background: #1e73be;
	display: inline-block;
	min-width: 20px;
	text-align: center;
	border-radius: 2px;
}
.hegl-skin-xo .hegl-ev {
	border-radius: 2px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	margin-left: 2px;
	width: calc(100% - 4px);
}

/* ---- skin: mec(立川本部校カレンダー風) ---- */
.hegl-skin-mec .hegl-cal-cap {
	font-size: 17px;
}
.hegl-skin-mec .hegl-dn {
	font-weight: 700;
}
.hegl-skin-mec .hegl-ev {
	font-weight: 700;
	font-size: 10px;
	padding: 2px 6px;
	margin-bottom: 1px;
}
.hegl-skin-mec .hegl-today {
	background: #f7f7f7;
}
.hegl-skin-mec .hegl-today .hegl-dn {
	color: #fff;
	background: #1b8ac7;
	display: inline-block;
	min-width: 18px;
	text-align: center;
	margin: 0 0 0 0;
	border-radius: 2px;
}

/* ---- スマホ ---- */
@media (max-width: 600px) {
	.hegl-cal .hegl-day {
		height: 64px;
	}
	.hegl-cal .hegl-dn {
		font-size: 10px;
		padding: 0 2px;
	}
	.hegl-cal .hegl-ev {
		font-size: 9px;
		padding: 1px 2px;
		line-height: 1.25;
	}
	.hegl-cal .hegl-cal-table th {
		font-size: 10px;
		padding: 3px 0;
	}
}

/* ---- 一覧 [hegl_events_list] ---- */
.hegl-list {
	margin: 0 0 1.5em;
}
.hegl-list .hegl-li-h {
	margin: 1.4em 0 0.5em;
	font-size: 16px;
	padding: 0 0 4px;
	border-bottom: 1px solid #ddd;
}
.hegl-list .hegl-li-ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hegl-list .hegl-li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 10px;
	margin: 0;
	padding: 6px 0;
	border-bottom: 1px dotted #e3e3e3;
	list-style: none;
}
.hegl-list .hegl-li-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	flex: 0 0 auto;
}
.hegl-list .hegl-li-date {
	color: #666;
	font-size: 13px;
	white-space: nowrap;
}
.hegl-list .hegl-li-title {
	appearance: none;
	background: none;
	border: 0;
	box-shadow: none;
	color: #1b6fa8;
	cursor: pointer;
	font: inherit;
	margin: 0;
	padding: 0;
	text-align: left;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
}

/* ---- ポップアップ ---- */
.hegl-modal[hidden] {
	display: none;
}
.hegl-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.hegl-modal .hegl-modal-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.hegl-modal .hegl-modal-box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 85vh;
	overflow: auto;
	padding: 22px 22px 18px;
	background: #fff;
	color: #333;
	border-top: 8px solid #ccc;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	font-size: 15px;
	line-height: 1.7;
}
.hegl-modal .hegl-modal-x {
	appearance: none;
	position: absolute;
	top: 4px;
	right: 8px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #666;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.hegl-modal .hegl-m-title {
	margin: 0 28px 6px 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.4;
	border: 0;
	background: none;
	color: #222;
}
.hegl-modal .hegl-m-when {
	margin: 0 0 12px;
	color: #555;
	font-size: 14px;
}
.hegl-modal .hegl-m-body p {
	margin: 0 0 0.8em;
}
.hegl-modal .hegl-m-body img {
	max-width: 100%;
	height: auto;
}
body.hegl-modal-open {
	overflow: hidden;
}
