.mofu-calendar-event-notes {
  max-width: 660px;      /* ← パディングなしの実表示幅 */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
  padding: 0;            /* ← 重要：余白ゼロ */
  background-color: #fff; /* ← 全カード共通の白に統一 */
}

.event-note-card {
  width: 216px;
  flex: none;
  padding: 10px;
  box-sizing: border-box;
  border: 2px solid var(--event-border, #aaa);
  background-color: #FFFEF6; /* ← 統一白 */
  border-radius: 8px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

/* 日付 */
.event-note-card .event-date {
  font-weight: bold;
  color: #c00;
  margin-bottom: 4px;
}

/* タイトルリンク */
.event-note-card .event-title a {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 6px;
  color: #0044cc;
  text-decoration: underline;
  display: inline-block;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* メモテキスト */
.event-note-card .event-memo {
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  margin-top: auto;
  white-space: normal;
}

/* 画像 */
.event-note-card .event-image {
  margin-top: 0px;
  text-align: center;
}

.event-note-card .event-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
}

.event-heading {
  font-weight: bold;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.event-text {
  font-size: 12px;
  color: #333;
  /* line-height: 0.6; ← これを削除！ */
  white-space: pre-line;
  margin-top: 2px;
  text-align: left;
  }

.event-card-empty {
  width: 216px;
  height: 100%;
  box-sizing: border-box;
  padding: 10px;
  background: none;
  border: none;
  box-shadow: none;
  pointer-events: none;
  visibility: hidden;
  margin: 0;
}

.event-thumb {
  display: inline-block;
  margin: 4px 4px 0 0;
}

.modal-box {
  max-width: 90vw;       /* ← 横幅を画面の90%まで許容 */
  max-height: 90vh;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.event-section-heading::before {
  content: '🌸 ';
  color: #f88aaf; /* お好みのピンク系 */
  margin-right: 4px;
}

.event-section-heading {
  font-weight: bold; /* ← これが今抜けてる */
}

.event-line-heading {
  font-weight: bold;
  color: #e26c9f;
  margin-top: 6px;
}

.event-line-text {
  line-height: 1.3;
  margin-left: 0.5em;
}

/* 🌐 自動リンクされたURLの見た目と動作 */
.event-line-text a {
  color: #0044cc;
  text-decoration: underline;
  display: inline;
  word-break: break-all;
  cursor: pointer;
}

.toggle-recommend {
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 12px;
  background: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  color: #333;
}

.event-recommend-box {
  margin-top: 6px;
  font-size: 12px;
  color: #444;
}
.event-recommend-box[hidden] {
  display: none;
}
.event-recommend-box ul {
  padding-left: 1.2em;
  margin: 0;
  line-height: 1.3;
}
.event-recommend-box li {
  margin-bottom: 2px;
}

.event-extra-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  justify-content: center;
}
.event-thumb {
  width: 100%;
  max-width: 200px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: zoom-in;
}

.image-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid #fff;
  border-radius: 8px;
}

.delete-button {
  margin-left: 6px;
  background: #fdd;
  border: 1px solid #f99;
  color: #900;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
}

