/* .content-subtitle {
    margin: 0 auto !important;
    max-width: 1200px !important;
} */

/* 下に中央揃えが来るので、タイトルアイコンをズラしたほうがデザインがよく見える */
#main-content .page-title img {
  margin-right: 0 !important;
}

/* 月ごとのイベントリストコンテナ */
.events-first {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 0 auto;
  max-width: 1200px;
}

/* 月ごとのコンテナ */
.month {
  background: #faf8f5;
  border-radius: 12px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: rgb(133, 127, 115) 0.5px solid;
}

/* .month:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
} */

/* 月のアイコン */
.month-title {
  text-align: center;
  /* margin-bottom: 16px; */
}

.month-title img {
  width: 90%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* イベントリスト */
.month ul {
  /* margin: 0;
    padding: 0; */
  /* list-style: none; */
}

.month ul li {
  /* padding: 8px 12px; */
  /* margin-bottom: 6px; */
  /* background: #f8f9fa; */
  /* border-radius: 6px; */
  /* font-size: 14px; */
  /* line-height: 1.5; */
  /* color: #333; */
}

.month ul li:last-child {
  margin-bottom: 0;
}

/* スマホ向けレスポンシブデザイン */
@media screen and (max-width: 600px) {
  .events-first {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 8px;
  }

  .month {
    padding: 16px;
  }

  .month-title img {
    max-width: 160px;
  }

  .month-title {
    margin-bottom: 0;
  }

  .month ul li {
    /* font-size: 13px;
        padding: 6px 10px; */
  }

  .month ul {
    margin-block-start: 0;
  }
}

/* タブレット向け */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .events-first {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* デスクトップ向け - 3列表示 */
@media screen and (min-width: 1025px) {
  .events-first {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 大画面向け - 4列表示 */
@media screen and (min-width: 1400px) {
  .events-first {
    grid-template-columns: repeat(4, 1fr);
  }
}
