/* ===== マブダチシティ カレンダー ===== */
.mem-calendar-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
}

/* アナウンスバナー */
.mem-announce {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 14px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(255,107,107,0.3);
}
.mem-announce-icon { font-size: 22px; flex-shrink: 0; }
.mem-announce p { font-size: 13px; color: #fff; font-weight: 700; line-height: 1.7; margin: 0; }
.mem-announce-sub { font-weight: 300; font-size: 12px; opacity: 0.85; }

/* カレンダー本体 */
.mem-calendar {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.12);
}

/* ヘッダー */
.mem-cal-header {
  background: #1a1a1a;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mem-cal-month {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.mem-cal-sub {
  font-size: 11px;
  color: #555;
  letter-spacing: 0.3em;
  margin-top: 6px;
}
.mem-cal-nav { display: flex; gap: 10px; }
.mem-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #333;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}
.mem-nav-btn:hover { background: #fff; color: #1a1a1a; border-color: #fff; }

/* グリッド */
.mem-cal-body { background: #fff; padding: 28px 24px 36px; }
.mem-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 10px;
}
.mem-cal-weekdays span {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #ccc;
  padding: 8px 0;
  font-weight: 700;
}
.mem-cal-weekdays span.sat { color: #a0c4f4; }
.mem-cal-weekdays span.sun { color: #f4a0a0; }

.mem-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.mem-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #444;
  border-radius: 12px;
  transition: background 0.15s;
}
.mem-cal-day.sat { color: #a0b8e8; }
.mem-cal-day.sun { color: #e8a0a0; }
.mem-cal-day.today { background: #f0eeea; font-weight: 700; }

/* イベントのある日 */
.mem-cal-day.has-event {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff !important;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,107,107,0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.mem-cal-day.has-event:hover {
  transform: scale(1.18);
  box-shadow: 0 10px 30px rgba(255,107,107,0.5);
  z-index: 10;
}
.mem-event-day-num { font-size: 16px; font-weight: 900; line-height: 1; }
.mem-event-day-title {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin-top: 4px;
  padding: 0 4px;
  transition: font-size 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mem-cal-day.has-event:hover .mem-event-day-title {
  font-size: 10px;
  white-space: normal;
}

/* イベントリスト */
.mem-event-list { margin-top: 28px; border-top: 1px solid #f0f0f0; padding-top: 24px; }
.mem-event-list-label { font-size: 10px; letter-spacing: 0.4em; color: #ccc; text-transform: uppercase; margin-bottom: 14px; }
.mem-event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fafafa;
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  border-left: 3px solid #ff6b6b;
  background: #fff5f5;
  transition: all 0.2s;
}
.mem-event-item:hover { transform: translateX(4px); opacity: 0.85; }
.mem-event-date-box {
  min-width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.mem-event-date-num { font-size: 20px; font-weight: 900; line-height: 1; }
.mem-event-date-dow { font-size: 9px; color: #bbb; letter-spacing: 0.1em; }
.mem-event-info { flex: 1; }
.mem-event-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.mem-event-meta { font-size: 11px; color: #aaa; }
.mem-event-arrow { font-size: 18px; color: #ddd; }

/* モーダル */
.mem-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 20px;
}
.mem-modal-overlay.open { opacity: 1; pointer-events: all; }
.mem-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
}
.mem-modal-overlay.open .mem-modal { transform: translateY(0) scale(1); }

/* ===== モーダル内フォーム ===== */
.mem-modal-hero {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  padding: 32px 36px 28px;
  color: #fff;
  position: relative;
}
.mem-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.mem-modal-close:hover { background: rgba(255,255,255,0.35); }
.mem-modal-event-tag { font-size: 10px; letter-spacing: 0.3em; opacity: 0.7; margin-bottom: 8px; }
.mem-modal-event-name { font-size: 24px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.mem-modal-event-info { display: flex; flex-direction: column; gap: 6px; }
.mem-modal-info-row { font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 8px; }

.mem-modal-form { padding: 28px 36px 36px; }
.mem-modal-form-title { font-size: 13px; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.05em; }
.mem-form-group { margin-bottom: 16px; }
.mem-form-label { display: block; font-size: 11px; color: #888; letter-spacing: 0.1em; margin-bottom: 6px; font-weight: 700; }
.mem-form-required { color: #ff6b6b; }
.mem-form-input, .mem-form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fafafa;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  font-family: inherit;
}
.mem-form-input:focus, .mem-form-select:focus {
  border-color: #ff6b6b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}
.mem-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mem-form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.1em;
  margin-top: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(255,107,107,0.35);
  font-family: inherit;
}
.mem-form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,107,0.45); }
.mem-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.mem-modal-success { padding: 48px 36px; text-align: center; }
.mem-success-icon { font-size: 48px; margin-bottom: 16px; }
.mem-success-title { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.mem-success-msg { font-size: 13px; color: #888; line-height: 1.8; }