/* ============================================================
   AAA Open Campus Calendar – スタイルシート v1.0.5
   1ヶ月スライダー表示・スワイプ対応
   ============================================================ */

/* ============================================================
   カレンダー全体ルート
   ============================================================ */
.aaa-oc-root {
	font-family: inherit;
	box-sizing: border-box;
	max-width: 480px;
	margin: 0 auto;
}
.aaa-oc-root *,
.aaa-oc-root *::before,
.aaa-oc-root *::after {
	box-sizing: border-box;
}

/* ============================================================
   「日付から選ぶ」ヘッダー
   ============================================================ */
.aaa-oc-header {
	background: #e0007a;
	color: #fff;
	text-align: center;
	font-size: 1em;
	font-weight: 700;
	padding: 10px 0;
	letter-spacing: 0.08em;
	margin-bottom: 0;
}

/* ============================================================
   スライダー外枠（矢印＋本体）
   ============================================================ */
.aaa-oc-slider-outer {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 16px 0 8px;
}

/* 矢印ボタン */
.aaa-oc-arrow {
	background: none;
	border: none;
	cursor: pointer;
	color: #aaa;
	font-size: 1.8em;
	line-height: 1;
	padding: 4px 10px;
	flex-shrink: 0;
	transition: color 0.15s;
	user-select: none;
	-webkit-user-select: none;
}
.aaa-oc-arrow:hover,
.aaa-oc-arrow:focus {
	color: #555;
	outline: none;
}
.aaa-oc-arrow:disabled {
	color: #ddd;
	cursor: default;
}

/* スライド表示エリア（overflow:hidden でクリップ） */
.aaa-oc-slider-wrap {
	flex: 1;
	overflow: hidden;
}

/* スライドトラック（flex で横並び、transition でスライド） */
.aaa-oc-slider {
	display: flex;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* ============================================================
   1ヶ月分ブロック
   ============================================================ */
.aaa-oc-month {
	min-width: 100%;
	flex: 0 0 100%;
	padding: 0 4px;
}

/* 年・月 タイトル */
.aaa-oc-month-year {
	text-align: center;
	font-size: 0.8em;
	color: #888;
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}
.aaa-oc-month-head {
	text-align: center;
	font-size: 2.6em;
	font-weight: 700;
	color: #222;
	line-height: 1.1;
	margin-bottom: 16px;
}

/* ============================================================
   カレンダーテーブル
   ============================================================ */
.aaa-oc-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.aaa-oc-table th,
.aaa-oc-table td {
	text-align: center;
	padding: 6px 2px;
	font-size: 0.9em;
	vertical-align: middle;
}

/* 曜日ヘッダー */
.aaa-oc-table .aaa-dow {
	font-weight: 600;
	color: #888;
	font-size: 0.82em;
	padding-bottom: 10px;
}

/* 日曜・土曜の色 */
.aaa-oc-table .aaa-sun { color: #cc0000; }
.aaa-oc-table .aaa-sat { color: #0055cc; }

/* ============================================================
   イベントある日付（ピンク円）
   ============================================================ */
.aaa-oc-table .aaa-has-ev .aaa-day-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e0007a;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	font-size: 0.95em;
	transition: background 0.15s, transform 0.1s;
}
.aaa-oc-table .aaa-has-ev .aaa-day-link:hover,
.aaa-oc-table .aaa-has-ev .aaa-day-link:focus {
	background: #b0005a;
	transform: scale(1.08);
	outline: none;
}

/* ============================================================
   ポップアップ オーバーレイ
   ============================================================ */
#aaa-oc-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.52);
	z-index: 9998;
	cursor: pointer;
}

/* ============================================================
   ポップアップ本体
   ============================================================ */
#aaa-oc-popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	width: min(700px, 90vw);
	max-height: 80vh;
	overflow-y: auto;
	z-index: 9999;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
	border: 1px solid #e0e0e0;
	padding: 32px 32px 28px;
}

/* 閉じるボタン */
.aaa-oc-close {
	position: sticky;
	float: right;
	top: 0;
	background: #fff;
	border: 1px solid #bbb;
	width: 28px;
	height: 28px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: -8px -8px 12px 12px;
	color: #333;
	transition: background 0.1s;
}
.aaa-oc-close:hover { background: #f0f0f0; }

/* 日付ヘッダー */
.aaa-oc-popup-date {
	font-size: 1.3em;
	font-weight: 700;
	margin: 0 0 20px;
	clear: both;
}

/* ---- イベント 1 件分 ---- */
.aaa-oc-event {
	margin-bottom: 24px;
}

/* AM/PM バッジ行 */
.aaa-oc-event-header {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f5f5f5;
	padding: 8px 14px;
	margin-bottom: 12px;
}

.aaa-oc-badge {
	display: inline-block;
	padding: 3px 18px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 0.9em;
	letter-spacing: 0.05em;
	flex-shrink: 0;
}
.aaa-oc-badge.am { background: #e0007a; color: #fff; }
.aaa-oc-badge.pm { background: #d4a800; color: #fff; }

.aaa-oc-event-title-text {
	font-size: 0.97em;
	font-weight: 600;
	color: #222;
}

/* サムネイル画像 */
.aaa-oc-event-img {
	width: 130px;
	height: 98px;
	object-fit: cover;
	display: block;
	margin: 0 0 8px;
}

/* コースリンク */
.aaa-oc-event-link {
	color: #e0007a;
	font-size: 0.92em;
	text-decoration: underline;
}
.aaa-oc-event-link:hover { color: #a00060; }

/* 時間情報 */
.aaa-oc-event-time {
	font-size: 0.95em;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px;
	padding: 6px 14px;
	background: #fafafa;
	border-left: 3px solid #e0007a;
}

/* 特別イベントの体験項目 */
.aaa-oc-event-items {
	font-size: 0.88em;
	color: #444;
	margin: 6px 0 0;
	line-height: 1.7;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 500px) {
	#aaa-oc-popup {
		padding: 20px 16px 18px;
	}
	.aaa-oc-event-img {
		width: 100px;
		height: 75px;
	}
	.aaa-oc-month-head {
		font-size: 2.2em;
	}
}
