/* トップページ「開催予定カレンダー」 */
.sc-lead {
  margin: -20px 0 26px;
  max-width: 760px;
  color: var(--muted, rgba(246, 241, 221, 0.74));
  font-size: 16px;
  line-height: 1.9;
}

.sc {
  border: 1px solid rgba(246, 241, 221, 0.16);
  border-radius: 24px;
  padding: clamp(16px, 3vw, 30px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sc-month {
  margin: 0;
  font-family: "DM Sans", "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.sc-nav { display: flex; gap: 8px; }
.sc-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 221, 0.3);
  background: transparent;
  color: var(--ink, #f6f1dd);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.sc-nav button:hover:not(:disabled) { background: rgba(246, 241, 221, 0.12); border-color: var(--accent, #d4c46d); }
.sc-nav button:disabled { opacity: 0.3; cursor: default; }
.sc-nav button:focus-visible, .sc-day:focus-visible, .sc-modal-close:focus-visible {
  outline: 3px solid var(--accent, #d4c46d);
  outline-offset: 2px;
}

.sc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink, #f6f1dd);
}
.sc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.sc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sc-dow {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted, rgba(246, 241, 221, 0.74));
  padding: 2px 0 6px;
}
.sc-dow.is-sun { color: #ff9f9f; }
.sc-dow.is-sat { color: #8fc9ff; }

.sc-day {
  position: relative;
  min-height: 112px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(246, 241, 221, 0.1);
  background: rgba(0, 20, 40, 0.28);
  color: var(--ink, #f6f1dd);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  font: inherit;
}
.sc-day.is-blank { visibility: hidden; }
.sc-day.is-past { opacity: 0.45; }
.sc-day.has-events { cursor: pointer; border-color: rgba(246, 241, 221, 0.24); background: rgba(255, 255, 255, 0.07); transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.sc-day.has-events:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); border-color: var(--accent, #d4c46d); }
.sc-day.is-today { box-shadow: inset 0 0 0 2px var(--accent, #d4c46d); }
.sc-num { font-family: "DM Sans", sans-serif; font-size: 17px; font-weight: 700; }
.sc-day.is-sun .sc-num { color: #ff9f9f; }
.sc-day.is-sat .sc-num { color: #8fc9ff; }

.sc-chip {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--c);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.sc-chip.is-full { opacity: 0.55; }
.sc-more { font-size: 13px; color: var(--muted, rgba(246, 241, 221, 0.74)); }
.sc-dots { display: none; gap: 3px; flex-wrap: wrap; }
.sc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

.sc-msg { margin: 16px 0 0; font-size: 15px; color: var(--muted, rgba(246, 241, 221, 0.74)); }
.sc-note { margin: 14px 0 0; font-size: 12px; color: var(--muted, rgba(246, 241, 221, 0.74)); line-height: 1.8; }

@media (max-width: 900px) {
  .sc-day { min-height: 70px; align-items: center; }
  .sc-chip, .sc-more { display: none; }
  .sc-dots { display: flex; justify-content: center; }
}

@media (max-width: 720px) {
  .sc-lead { margin-top: -18px; font-size: 15px; }
  .sc-grid { gap: 4px; }
  .sc-dow { font-size: 13px; }
  .sc-legend { font-size: 13px; }
  .sc-day { min-height: 64px; padding: 7px 3px; align-items: center; border-radius: 10px; }
  .sc-num { font-size: 16px; }
  .sc-chip, .sc-more { display: none; }
  .sc-dots { display: flex; justify-content: center; }
}

/* ── モーダル ── */
.sc-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sc-modal[hidden] { display: none; }
.sc-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 12, 26, 0.72); backdrop-filter: blur(4px); }
.sc-modal-box {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(246, 241, 221, 0.18);
  background: linear-gradient(170deg, #0a4a7e, #062b4d);
  color: var(--ink, #f6f1dd);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 26px 22px 22px;
  animation: scPop 0.25s ease;
}
@keyframes scPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sc-modal-box { animation: none; } .sc-day.has-events:hover { transform: none; } }
.sc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 221, 0.25);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}
.sc-modal-label { margin: 0; font-size: 13px; letter-spacing: 0.16em; color: var(--accent, #d4c46d); font-family: "DM Sans", sans-serif; font-weight: 700; }
.sc-modal-title { margin: 4px 48px 18px 0; font-size: 24px; font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; }

.sc-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sc-event {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(246, 241, 221, 0.12);
  border-left: 5px solid var(--c);
}
.sc-event-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.sc-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #062b4d; background: var(--c); }
.sc-time { font-family: "DM Sans", "Noto Sans JP", sans-serif; font-weight: 700; font-size: 15px; }
.sc-seats { margin-left: auto; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(126, 203, 186, 0.2); color: #9be7d4; }
.sc-seats.is-few { background: rgba(255, 209, 102, 0.2); color: #ffd166; }
.sc-seats.is-full { background: rgba(255, 120, 120, 0.2); color: #ffb3b3; }
.sc-event-name { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.sc-event-note { margin: 0 0 10px; font-size: 15px; line-height: 1.8; color: rgba(246, 241, 221, 0.85); white-space: pre-line; overflow-wrap: anywhere; }
.sc-event-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, #d4c46d);
  text-decoration: none;
}
.sc-event-link:hover { text-decoration: underline; }

.sc-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 50px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(6, 199, 85, 0.3);
}
.sc-modal-cta:hover { filter: brightness(1.06); }
.sc-modal-foot { margin: 12px 0 0; font-size: 14px; text-align: center; color: rgba(246, 241, 221, 0.7); }
.sc-modal-foot a { color: inherit; }
