/*
 * イベントカレンダー専用CSS
 */

 @import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap");

 :root {
  --cq-ref-mobile: 375;
  --cq-ref: 1336;
  --fluid-basis-mobile: (100vw - 320px) / (375 - 320);
  --fluid-basis: (100vw - 768px) / (1440 - 768);
  --fluid-basis-2: (100vw - 1440px) / (1800 - 1440);
}
 .c-re-heading {
	font-size: clamp(28px, calc(34 * 100 / var(--cq-ref) * 1cqw), 34px);
	font-weight: var(--font-weight-bold);
	line-height: 1.5;
	text-align: center;
	margin: 0;
 }
 .c-calendar-heading {
	font-size: clamp(28px, calc(34 * 100 / var(--cq-ref) * 1cqw), 34px);
	font-weight: var(--font-weight-bold);
	line-height: 1.5;
	text-align: center;
	margin: 0;
	font-feature-settings: "palt";
	letter-spacing: .02em;
 }
 @media (max-width: 767px) {
  .c-calendar-heading {
	font-size: min(23px, calc(23 * 100 / var(--cq-ref-mobile) * 1cqw));
  }
 }
/* ページタイトル */
.c-page-title {
	font-size: 32px;
	font-weight: bold;
	color: #333;
	text-align: center;
	margin: 40px 0;
	padding-bottom: 20px;
	border-bottom: 3px solid #0071BC;
}

/* タブ */
.c-calendar-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 30px;
	border-bottom: 2px solid #e0e0e0;
}

.c-calendar-tab {
	display: inline-block;
	padding: 15px 30px;
	background: #f5f5f5;
	color: #666;
	text-decoration: none;
	font-weight: bold;
	font-size: 16px;
	border: none;
	border-bottom: 3px solid transparent;
	transition: all 0.3s;
	cursor: pointer;
}

.c-calendar-tab:hover {
	background: #e0e0e0;
	color: #333;
}

.c-calendar-tab.is-active {
	background: #fff;
	color: #0071BC;
	border-bottom-color: #0071BC;
}

/* イベントカレンダー */
.c-event-calendar {
	background: #fff;
	border-radius: 25px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 20px;
	margin-bottom: 40px;
}

.c-event-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e0e0;
}

.c-event-calendar-title {
	font-size: 32px;
	font-weight: bold;
	margin: 0;
}

.c-event-calendar-nav {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 10px;
	background: #f5f5f5;
	border-radius: 4px;
	color: #000;
	text-decoration: none;
	transition: all 0.3s;
	line-height: 1.5;
}

.c-event-calendar-nav:hover {
	background: #e0e0e0;
	color: #000;
}

.fas.fa-chevron-right, .fas.fa-chevron-left {
	font-weight: 500;
}

.c-event-calendar-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.c-event-calendar-body {
	overflow-x: visible;
}

.c-calendar-scroll-wrapper {
	min-width: 100%;
}

@media (max-width: 768px) {
	.c-event-calendar-body {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}
	
	.c-calendar-scroll-wrapper {
		min-width: 800px;
	}
}

.c-event-calendar-table th {
	padding: 12px 8px;
	text-align: center;
	font-weight: bold;
	color: #666;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
}

.c-event-calendar-table th:first-child {
	color: #e74c3c;
}

.c-event-calendar-table th:last-child {
	color: #3498db;
}

.c-event-calendar-table td {
	border: 1px solid #e0e0e0;
	padding: 0;
	height: 110px;
	vertical-align: top;
	background: #fff;
	transition: background 0.2s;
	padding: 5px;
}

.c-event-calendar-table td.is-empty {
	background: #fafafa;
}

.c-event-calendar-table td.has-event {
	background: #fff9e6;
	cursor: pointer;
}

/* お知らせカレンダーはカーソルポインターを適用しない、背景色も不要 */
.c-post-calendar-table td.has-event {
	background: transparent;
	cursor: default;
}

.c-event-calendar-table td.has-event:hover {
	background: #fff3cc;
}


.c-event-calendar-table td.is-sunday {
	color: #e74c3c;
}

.c-event-calendar-table td.is-saturday {
	color: #3498db;
}

.c-event-calendar-day {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}

.c-event-calendar-day .day-number {
	display: block;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 5px;
}

.c-event-calendar-day .c-event-calendar-title {
	display: inline-block;
	font-size: 11px;
	line-height: 1.4;
	color: #333;
	font-weight: 500;
	margin-bottom: 3px;
	padding: 1px 10px;
	border-radius: 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: fit-content;
	letter-spacing: 0.03em;
}

/* 親カテゴリ別の色（recruit.css の .c-news-list-category と同様） */
.c-event-calendar-day .c-event-calendar-title.welfare {
	background-color: #F8B62C;
	color: #fff;
}
.c-event-calendar-day .c-event-calendar-title.nursing {
	background-color: #EE86B3;
	color: #fff;
}
.c-event-calendar-day .c-event-calendar-title.specialty {
	background-color: #006FB8;
	color: #fff;
}

/* カレンダー下：凡例（福祉職・看護職・専門職） */
.c-event-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 500;
}
.c-event-calendar-legend li {
	display: flex;
	align-items: center;
	gap: 4px;
}
.c-event-calendar-legend-dot {
	flex-shrink: 0;
	font-size: 13px;
	line-height: 1;
}
.c-event-calendar-legend-dot.-welfare {
	color: #F8B62C;
}
.c-event-calendar-legend-dot.-nursing {
	color: #EE86B3;
}
.c-event-calendar-legend-dot.-specialty {
	color: #006FB8;
}

/* イベント一覧 */
.c-event-list {
	margin-top: 40px;
}

.c-event-list-title {
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #2196f3;
}

.c-event-list-items {
	display: grid;
	gap: 20px;
}

@media (min-width: 768px) {
	.c-event-list-items {
		overflow: auto;
		max-height: 700px;
	}
}

.c-event-list-empty {
	text-align: center;
	padding: 40px;
	color: #999;
	font-size: 16px;
}

.c-event-list-notice {
	text-align: center;
	padding: 40px;
	background: #f5f5f5;
	border-radius: 8px;
	color: #666;
	font-size: 16px;
}

/* イベントアイテム */
.c-event-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.3s;
}

.c-event-item-category {
	margin-bottom: 5px;
}

.c-event-item-category .c-news-list-category {
	display: inline-block;
	padding: 0 12px;
	border-radius: 20px;
	font-size: 13px;
	color: #fff;
}

.c-event-item-category .c-news-list-category.welfare {
	background-color: #F8B62C;
}
.c-event-item-category .c-news-list-category.nursing {
	background-color: #EE86B3;
}
.c-event-item-category .c-news-list-category.specialty {
	background-color: #006FB8;
}

.c-event-item-header {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.c-event-item-type,
.c-event-item-target {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
}

.c-event-item-type {
	background: #e3f2fd;
	color: #1976d2;
}

.c-event-item-target {
	background: #fff3e0;
	color: #f57c00;
}

.c-event-item-title {
	font-size: 16px;
	font-weight: var(--font-weight-bold);
	margin: 0 0 12px 0;
	line-height: 1.6;
}

.c-event-item-excerpt {
	margin: 10px 0 15px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
}

.c-event-item-excerpt-text {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	word-break: break-word;
}

.c-event-item-info {
	margin-bottom: 10px;
}

.c-event-item-info-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
	color: #666;
	font-size: 14px;
}

.c-event-item-info-row i {
	margin-top: 3px;
	color: #999;
	width: 16px;
}

.c-event-item-info-row small {
	display: block;
	color: #999;
	font-size: 13px;
	margin-top: 2px;
}

.c-event-item-footer {
	text-align: right;
}

/* ボタン */
.c-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s;
	text-align: center;
	background: #0071BC;
	color: #fff;
	transition: opacity 0.3s ease;
	will-change: opacity;
}

.c-button:hover {
	opacity: 0.8;
}

/* お知らせカレンダー（タイトル表示） */
.c-post-calendar-table td {
	height: 120px;
	vertical-align: top;
}

.c-post-calendar-day {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 8px;
	overflow: hidden;
	cursor: default;
}

.c-post-calendar-day .day-number {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 5px;
}

.c-post-calendar-title {
	display: block;
	font-size: 13px;
	line-height: 1.3;
	color: #001dff;
	text-decoration: underline;
	margin-bottom: 3px;
	padding: 0;
	transition: all 0.3s;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}



.c-post-calendar-table td {
	cursor: default;
}

.c-post-calendar-title {
	cursor: pointer;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.c-page-title {
		font-size: 24px;
		margin: 20px 0;
	}

	.c-calendar-tabs {
		margin-bottom: 20px;
	}

	.c-calendar-tab {
		padding: 12px 20px;
		font-size: 14px;
	}

	.c-event-calendar {
		padding: 15px;
		border-radius: 15px;
	}

	.c-event-calendar-header {
		gap: 15px;
	}

	.c-event-calendar-title {
		font-size: 20px;
	}

	.c-event-calendar-table th,
	.c-event-calendar-table td {
		font-size: 12px;
	}

	.c-event-calendar-table td {
		height: 100px;
	}

	.c-post-calendar-table td {
		height: 100px;
	}

	.c-event-calendar-day .day-number {
		font-size: 14px;
	}

	.c-event-calendar-day .c-event-calendar-title {
		font-size: 12px;
		margin-bottom: 2px;
	}

	.c-post-calendar-title {
		font-size: 10px;
		padding: 0;
		margin-bottom: 2px;
	}

	.c-event-item-excerpt-text {
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}


/* 採用ページ：イベントカレンダー＋イベント一覧の横並び */
.c-re-calendar-section {
  padding: clamp(75px, calc(75 * 100 / var(--cq-ref) * 1cqw), 75px) 0 clamp(80px, calc(100 * 100 / var(--cq-ref) * 1cqw), 100px);
  overflow: hidden;
}
@media (max-width: 767px) {
  .c-re-calendar-section {
	padding: min(42px, calc(42 * 100 / var(--cq-ref-mobile) * 1cqw)) 0 min(60px, calc(60 * 100 / var(--cq-ref-mobile) * 1cqw));
  }
}
.bg-blue.c-re-calendar-section {
	background-color: #cbecfd;
}



.c-re-calendar-section .c-inner {
  max-width: 1150px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.c-re-calendar-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.c-re-calendar-col--calendar {
  -webkit-box-flex: 65;
  -ms-flex: 65 1 0%;
  flex: 65 1 0%;
  min-width: 0;
}

.c-re-calendar-col--list {
  -webkit-box-flex: 35;
  -ms-flex: 35 1 0%;
  flex: 35 1 0%;
  min-width: 0;
}

.c-re-calendar-section .c-event-calendar--recruit {
  margin-bottom: 0;
  max-width: 100%;
}

.c-re-calendar-section .c-event-calendar-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.c-re-calendar-section .c-calendar-scroll-wrapper {
  min-width: 0;
}

.c-re-calendar-section .c-event-list--recruit {
  margin-top: 0;
}

.c-re-calendar-section .c-button {
  padding: 5px 16px;
  font-size: 14px;
  gap: 6px;
}

.c-re-calendar-section .c-re-calendar-lead {
	font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(12px, calc(14 * 100 / var(--cq-ref) * 1cqw), 14px);
	font-weight: var(--font-weight-semibold);
  margin-bottom: 24px;
  line-height: 1.5;
	font-feature-settings: "palt";
	margin-top: clamp(20px, calc(34 * 100 / var(--cq-ref) * 1cqw), 34px);
}

@media (max-width: 767px) {
  .c-re-calendar-section .c-re-calendar-lead {
	font-size: min(14px, calc(14 * 100 / var(--cq-ref-mobile) * 1cqw));
	margin-top: 7px;
	line-height: 1.6;
  }
}

@media screen and (max-width: 1023px) {
  .c-re-calendar-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 24px;
  }

  .c-re-calendar-col--calendar {
    max-width: 100%;
    width: 100%;
  }

  .c-re-calendar-col--list {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
		width: 100%;
  }

  .c-re-calendar-section .c-calendar-scroll-wrapper {
    min-width: 600px;
  }
}

/* 採用ページ：AJAX切り替え時のローディング */
.c-re-calendar-row.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
