@charset "UTF-8";
@font-face {
  font-family: "back-to-black-demo";
  src: url(../css/back-to-black-demo.woff) format("woff"); /* フォントファイルのパスとフォーマットを指定 */
}
/* 全体 */
.event-calendar {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ヘッダー（月移動） */
.ec-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.ec-month-label {
  font-size: 24px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
}

/* カテゴリフィルター */
.ec-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ec-filter-btn {
  border-radius: 16px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 13px;
}

.ec-filter-btn.active {
  border-color: #333;
  background: #333;
  color: #fff;
}

/* レイアウト：左カレンダー / 右イベント一覧 */
.ec-body {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 768px) {
  .ec-body {
    display: block;
  }
}

.ec-events {
  width: 46%;
}
@media (max-width: 768px) {
  .ec-events {
    width: 100%;
  }
}

/* カレンダー＋矢印のラッパー */
.ec-calendar-area {
  position: relative;
  padding: 0 30px; /* 矢印分の余白 */
}
@media (max-width: 768px) {
  .ec-calendar-area {
    margin-bottom: 20px;
  }
}

/* サイド矢印のスタイル */
.ec-calendar-area .ec-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 120px;
  border-radius: 6px;
  border: #00a995 1px solid;
  background: #ffffff;
  color: #00a995;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 左矢印 */
.ec-calendar-area .ec-prev {
  left: 0;
}

/* 右矢印 */
.ec-calendar-area .ec-next {
  right: 0;
}

/* カレンダー */
.ec-calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
}

.ec-calendar-table th,
.ec-calendar-table td {
  background-color: #fff;
  border: #e5e5e5 1px solid;
  vertical-align: middle;
}

.ec-calendar-table th {
  background: #fff;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 16px;
  width: 70px;
  height: 48px;
}

.ec-calendar-table td {
  background: #fff;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 16px;
  width: 70px;
  height: 78px;
}

/* 日付セル */
.ec-day.has-event {
  cursor: pointer;
}

/* 今日の枠だけ少し強調 */
.ec-day.today {
  box-shadow: inset 0 0 0 2px rgba(0, 169, 149, 0.2);
}

/* 選択中（右側に表示している日） */
/* 日付数字を中央の丸の中に配置 */
/* イベントのある日は塗りつぶしの丸 */
.ec-day.has-event {
  position: relative;
}
.ec-day.has-event::before {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  background: #00a995;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  cursor: pointer;
}
.ec-day.has-event .ec-day-num {
  position: relative;
  z-index: 1;
  color: #fff;
}
@media (max-width: 768px) {
  .ec-day.has-event::before {
    width: 30px;
    height: 30px;
  }
}

/* 余白用セル */
.ec-empty {
  background: #f8fafa;
}

/* 以前つけていた小さな点は非表示にしてOK */
.ec-dot {
  display: none;
}

/* 右側ボックス */
.ec-events-inner {
  background: #ffffff;
  border-radius: 4px;
  padding: 16px 20px;
  width: 100%;
}

/* 上部の日付「● 2025.9.1 Mon」風 */
.ec-events-date {
  font-size: 24px;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* 左の丸（常にお知らせ色にする例。日によって変えたければ JS/PHP でも可） */
.ec-events-date::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00a995;
}

/* カテゴリラベルを枠線付きボタン風に */
.ec-event-categories {
  margin-bottom: 6px;
}

.ec-cat-label {
  display: inline-block;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 12px;
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 4px;
  background: #fff;
}

/* お知らせ */
.ec-cat-label.ec-cat-news {
  border: 1px solid #00a995;
  color: #00a995;
}

/* イベント */
.ec-cat-label.ec-cat-event {
  border: 1px solid #d8782b;
  color: #d8782b;
}

/* お役立ち */
.ec-cat-label.ec-cat-tips {
  border: 1px solid #2498e2;
  color: #2498e2;
}

/* タイトル・本文 */
.ec-event-title {
  font-family: "Sawarabi Mincho", serif;
  font-size: 22px;
  margin: 0 0 4px;
}

.ec-event-title a {
  color: #333;
  text-decoration: none;
}

.ec-event-title a:hover {
  text-decoration: underline;
}

/* 本文背景を薄いピンク寄りにしてサンプル風に（色はお好みで） */
.ec-event-excerpt {
  font-size: 14px;
  color: #555;
  padding: 6px 8px;
}

/* 複数記事の区切り */
.ec-event-item + .ec-event-item {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* 「イベントはありません」 */
.ec-no-events {
  font-size: 13px;
  color: #888;
  padding: 16px 0;
}