/* Nexus Event Board — bright · no borders · no glow · pill buttons */
:root {
  --nxb-bg: #eef6ff;
  --nxb-ink: #1a2332;
  --nxb-muted: #5a6a80;
  --nxb-faint: #8a98ab;
  --nxb-join: #12b886;
  --nxb-accent: #228be6;
  --nxb-warm: #e67700;
  --nxb-danger: #e03131;
  --nxb-pill: 999px;
  --nxb-font: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --nxb-display: "Nunito", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: none !important;
  outline: none;
  text-shadow: none;
  filter: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.nx-board {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--nxb-font);
  color: var(--nxb-ink);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 75% 55% at 8% -5%, rgba(255, 196, 60, 0.55), transparent 52%),
    radial-gradient(ellipse 65% 50% at 100% 0%, rgba(64, 192, 255, 0.45), transparent 48%),
    radial-gradient(ellipse 55% 45% at 70% 90%, rgba(64, 230, 170, 0.32), transparent 48%),
    linear-gradient(175deg, #fff3d0 0%, #dff0ff 42%, #d8fff0 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--nxb-accent); }

.nxb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(200px, 560px) minmax(120px, 1fr);
  gap: 12px 16px;
  align-items: center;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.nxb-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  color: var(--nxb-ink);
  white-space: nowrap;
}

.nxb-logo-text {
  font-family: var(--nxb-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.nxb-logo-text em {
  font-style: normal;
  color: var(--nxb-join);
}

.nxb-search {
  width: 100%;
  justify-self: center;
}

.nxb-search input {
  width: 100%;
  padding: 13px 22px;
  border-radius: var(--nxb-pill);
  background: #e9ecef;
  color: var(--nxb-ink);
  font: inherit;
  font-size: 0.95rem;
}

.nxb-search input::placeholder { color: var(--nxb-faint); }

.nxb-search input:focus {
  background: #e2e6ea;
}

.nxb-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
  font-size: 0.86rem;
  position: relative;
}

.nxb-nav a {
  color: var(--nxb-muted);
  text-decoration: none;
  font-weight: 500;
}

.nxb-nav a:hover { color: var(--nxb-ink); }

.nxb-nav-help {
  white-space: nowrap;
}

.nxb-nav-login {
  padding: 9px 18px;
  border-radius: var(--nxb-pill);
  background: #5865f2;
  color: #fff !important;
  font-weight: 800;
  white-space: nowrap;
}

.nxb-user-menu {
  position: relative;
}

.nxb-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(48vw, 260px);
  padding: 4px 10px 4px 4px;
  border-radius: var(--nxb-pill);
  background: #fff;
  color: var(--nxb-ink);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.nxb-user-toggle:hover,
.nxb-user-toggle[aria-expanded="true"] {
  background: #f8f9fa;
}

.nxb-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #74c0fc, #4dabf7);
  display: grid;
  place-items: center;
}

.nxb-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nxb-user-avatar-fallback {
  font-family: var(--nxb-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1;
}

.nxb-user-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
  text-align: left;
}

.nxb-user-hello {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--nxb-faint);
  letter-spacing: 0.02em;
}

.nxb-user-label {
  max-width: 9.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--nxb-display);
  color: var(--nxb-ink);
}

.nxb-user-caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-right: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--nxb-faint);
  transition: transform 0.18s ease;
}

.nxb-user-toggle[aria-expanded="true"] .nxb-user-caret {
  transform: rotate(180deg);
}

.nxb-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}

.nxb-user-dropdown[hidden] {
  display: none;
}

.nxb-user-dropdown a,
.nxb-user-dropdown .nxb-logout-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--nxb-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.nxb-user-dropdown a:hover {
  background: #f1f3f5;
  color: var(--nxb-ink);
}

.nxb-logout-link {
  color: var(--nxb-danger) !important;
}

.nxb-logout-link:hover {
  background: #fff5f5 !important;
}

.nxb-hero-cta {
  margin: 22px 0 0;
}

.nxb-btn-host {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: min(100%, 360px);
  padding: 14px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffd43b 0%, #fab005 48%, #fd7e14 100%);
  color: #1a2332 !important;
  text-decoration: none;
  box-shadow: 0 8px 0 #e67700;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nxb-btn-host:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #e67700;
  color: #1a2332 !important;
}

.nxb-btn-host:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #e67700;
}

.nxb-btn-host-kicker {
  font-family: var(--nxb-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.nxb-btn-host-label {
  font-family: var(--nxb-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.nxb-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}

.nxb-hero {
  text-align: center;
  margin-bottom: 30px;
}

.nxb-hero h1 {
  margin: 0 0 12px;
  font-family: var(--nxb-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 3.15rem);
  letter-spacing: -0.02em;
  color: var(--nxb-ink);
}

.nxb-lead {
  margin: 0 auto;
  max-width: 100%;
  color: var(--nxb-muted);
  font-size: 1rem;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  padding: 0 8px;
}

.nxb-lead strong {
  color: var(--nxb-ink);
  font-weight: 700;
}

.nxb-marquee {
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.nxb-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5em;
  will-change: transform;
}

.nxb-marquee-track > span {
  flex-shrink: 0;
}

.nxb-marquee.is-scrolling .nxb-marquee-track {
  animation: nxbMarqueeScroll 10s linear infinite;
}

.nxb-marquee.is-scrolling:hover .nxb-marquee-track {
  animation-play-state: paused;
}

@keyframes nxbMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 1.25em)); }
}

.nxb-card-title-wrap {
  margin: 0;
  min-width: 0;
}

.nxb-cal-chip.nxb-marquee {
  display: block;
  padding: 4px 6px;
}

.nxb-cal-chip .nxb-marquee-track {
  font-size: inherit;
  font-weight: inherit;
}

.nxb-sort-wrap.is-locked {
  opacity: 0.45;
  pointer-events: none;
}

.nxb-sort-wrap.is-locked select {
  cursor: not-allowed;
}

.nxb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.nxb-view-toggle {
  display: inline-flex;
  align-items: center;
  background: #e9ecef;
  border-radius: var(--nxb-pill);
  padding: 4px;
  gap: 2px;
}

.nxb-view-btn {
  background: transparent;
  color: var(--nxb-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  font-family: var(--nxb-display);
  padding: 9px 16px;
  border-radius: var(--nxb-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nxb-view-btn:hover { color: var(--nxb-ink); }

.nxb-view-btn.is-active {
  background: #fff;
  color: var(--nxb-ink);
}

.nxb-edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 6px 6px 14px;
  border-radius: var(--nxb-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--nxb-muted);
}

.nxb-edition-label {
  white-space: nowrap;
  color: var(--nxb-ink);
  font-family: var(--nxb-display);
  font-weight: 800;
}

.nxb-edition select {
  appearance: none;
  -webkit-appearance: none;
  background: #edf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6a80' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--nxb-ink);
  font: inherit;
  font-weight: 800;
  font-family: var(--nxb-display);
  font-size: 0.84rem;
  padding: 8px 36px 8px 14px;
  border-radius: var(--nxb-pill);
  cursor: pointer;
  min-width: 9.5em;
}

.nxb-sort-wrap select {
  min-width: 8.5em;
  background-color: #fff4e6;
}

.nxb-count {
  margin: 0 0 0 auto;
  font-size: 0.84rem;
  color: var(--nxb-faint);
  font-weight: 600;
}

.nxb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nxb-grid.is-cal {
  display: block;
}

.nxb-grid.is-sorting .nxb-card,
.nxb-grid.is-sorting .nxb-empty,
.nxb-grid.is-sorting .nxb-cal {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nxb-grid.is-sorted-in .nxb-card,
.nxb-grid.is-sorted-in .nxb-cal {
  animation: nxbCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nxb-grid.is-sorted-in .nxb-card:nth-child(1) { animation-delay: 0.02s; }
.nxb-grid.is-sorted-in .nxb-card:nth-child(2) { animation-delay: 0.06s; }
.nxb-grid.is-sorted-in .nxb-card:nth-child(3) { animation-delay: 0.1s; }
.nxb-grid.is-sorted-in .nxb-card:nth-child(4) { animation-delay: 0.14s; }
.nxb-grid.is-sorted-in .nxb-card:nth-child(5) { animation-delay: 0.18s; }
.nxb-grid.is-sorted-in .nxb-card:nth-child(6) { animation-delay: 0.22s; }
.nxb-grid.is-sorted-in .nxb-card:nth-child(n+7) { animation-delay: 0.26s; }

@keyframes nxbCardIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nxb-cal {
  background: #fff;
  border-radius: 28px;
  padding: 18px 16px 20px;
  overflow: hidden;
}

.nxb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.nxb-cal-title {
  margin: 0;
  font-family: var(--nxb-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--nxb-ink);
}

.nxb-cal-hint {
  display: none;
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nxb-muted);
}

.nxb-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--nxb-pill);
  background: #f1f3f5;
  color: var(--nxb-ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.nxb-cal-nav:hover { background: #e9ecef; }

.nxb-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.nxb-cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--nxb-display);
  color: var(--nxb-faint);
  padding: 4px 0;
}

.nxb-cal-weekday.is-sun { color: #e03131; }
.nxb-cal-weekday.is-sat { color: #1971c2; }

.nxb-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.nxb-cal-day {
  position: relative;
  min-height: 92px;
  min-width: 0;
  padding: 6px;
  border-radius: 14px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nxb-cal-day.is-out {
  opacity: 0.38;
  background: transparent;
  pointer-events: none;
}

.nxb-cal-day.is-today {
  background: #e7f5ff;
}

.nxb-cal-day.is-sun .nxb-cal-num { color: #e03131; }
.nxb-cal-day.is-sat .nxb-cal-num { color: #1971c2; }

.nxb-cal-day.is-has-events {
  cursor: pointer;
}

.nxb-cal-num {
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--nxb-display);
  color: var(--nxb-ink);
  line-height: 1;
  padding: 2px 2px 0;
}

.nxb-cal-badge {
  display: none;
}

.nxb-cal-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.nxb-cal-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 6px;
  border-radius: 8px;
  background: #12b886;
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nxb-cal-chip:hover { background: #0ca678; }

.nxb-cal-chip.is-more {
  background: #edf2ff;
  color: #364fc7;
}

.nxb-cal-undated {
  margin-top: 16px;
  padding-top: 4px;
}

.nxb-cal-undated-title {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--nxb-muted);
}

.nxb-cal-undated-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nxb-cal-undated-list .nxb-cal-chip {
  width: auto;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: var(--nxb-pill);
}

.nxb-loading,
.nxb-empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  text-align: center;
  color: var(--nxb-muted);
  background: #dee2e6;
  border-radius: 28px;
}

.nxb-empty p { margin: 0; }
.nxb-empty p + p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--nxb-faint);
}

.nxb-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 20px;
  border-radius: 28px;
  background: #fff;
  transition: transform 0.18s;
}

.nxb-card:hover { transform: translateY(-3px); }

.nxb-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nxb-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #d0ebff;
}

.nxb-avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--nxb-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: #1864ab;
}

.nxb-card-meta { min-width: 0; flex: 1; }

.nxb-card-when {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--nxb-muted);
  margin-bottom: 2px;
}

.nxb-card-when .nxb-date {
  color: var(--nxb-warm);
  font-weight: 800;
}

.nxb-card-title {
  margin: 0;
  font-family: var(--nxb-display);
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--nxb-ink);
}

.nxb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 10px;
}

.nxb-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--nxb-pill);
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--nxb-display);
  background: #e7f5ff;
  color: #1971c2;
}

.nxb-tag-live {
  background: #ffe3e3;
  color: #c92a2a;
}

.nxb-tag-open {
  background: #d3f9d8;
  color: #2b8a3e;
}

.nxb-tag-play {
  background: #e3fafc;
  color: #0b7285;
}

.nxb-blurb {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--nxb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nxb-org-row {
  margin-top: 14px;
  padding-top: 4px;
  font-size: 0.8rem;
  color: var(--nxb-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.nxb-org-row a {
  color: var(--nxb-accent);
  text-decoration: none;
  font-weight: 700;
}

.nxb-org-row a:hover { text-decoration: underline; }

.nxb-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.nxb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--nxb-pill);
  font: inherit;
  font-weight: 900;
  font-size: 0.92rem;
  font-family: var(--nxb-display);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s;
}

.nxb-btn:active { transform: scale(0.98); }

.nxb-btn-join {
  background: #12b886;
  color: #fff;
}

.nxb-btn-join:hover { background: #0ca678; color: #fff; }

.nxb-btn-join:disabled,
.nxb-btn-join.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.nxb-btn-more {
  background: #edf2ff;
  color: #364fc7;
  padding-left: 16px;
  padding-right: 16px;
}

.nxb-btn-more:hover {
  background: #dbe4ff;
  color: #364fc7;
}

.nxb-modal[hidden] { display: none; }

.nxb-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.nxb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.4);
}

.nxb-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 26px 24px 22px;
}

.nxb-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #f1f3f5;
  color: var(--nxb-muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: var(--nxb-pill);
}

.nxb-modal-title {
  margin: 0 0 8px;
  font-family: var(--nxb-display);
  font-weight: 900;
  font-size: 1.4rem;
  padding-right: 36px;
  color: var(--nxb-ink);
}

.nxb-detail-body {
  white-space: pre-wrap;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--nxb-muted);
  margin: 14px 0 18px;
}

.nxb-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nxb-foot {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding: 14px 20px 18px;
  color: var(--nxb-faint);
  font-size: 0.72rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
}

.nxb-foot p { margin: 0 0 4px; }

.nxb-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.nxb-foot-links a {
  color: var(--nxb-faint);
  text-decoration: none;
}

.nxb-foot-links a:hover { color: var(--nxb-muted); }

.nxb-foot-staff {
  opacity: 0.7;
}

@media (max-width: 960px) {
  .nxb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxb-grid.is-cal { display: block; }
  .nxb-header {
    grid-template-columns: minmax(100px, 1fr) minmax(160px, 1fr) minmax(100px, 1fr);
  }
  .nxb-cal-day { min-height: 78px; }
  .nxb-user-text { display: none; }
  .nxb-user-toggle {
    max-width: none;
    padding: 4px;
    gap: 0;
  }
  .nxb-user-caret { margin: 0 6px 0 2px; }
}

@media (max-width: 768px) {
  .nxb-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo nav"
      "search search";
    gap: 10px;
  }
  .nxb-logo { grid-area: logo; }
  .nxb-nav { grid-area: nav; }
  .nxb-search {
    grid-area: search;
    max-width: none;
  }
  .nxb-logo-text { font-size: 0.95rem; }
  .nxb-nav-help { display: none; }
  .nxb-nav-login {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .nxb-filters {
    gap: 10px;
  }
  .nxb-view-toggle {
    width: 100%;
  }
  .nxb-view-btn {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  .nxb-count { margin-left: 0; width: 100%; }
  .nxb-hero {
    margin-bottom: 22px;
  }
  .nxb-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .nxb-lead {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .nxb-btn-host {
    min-width: 0;
    width: 100%;
    max-width: 420px;
    padding: 12px 18px;
    box-shadow: 0 6px 0 #e67700;
  }
  .nxb-btn-host:hover {
    box-shadow: 0 8px 0 #e67700;
  }
  .nxb-btn-host-label { font-size: 0.92rem; }

  /* スマホカレンダー: イベント名を出さず、丸で示す */
  .nxb-cal {
    padding: 14px 10px 16px;
    border-radius: 22px;
  }
  .nxb-cal-hint { display: block; }
  .nxb-cal-title { font-size: 1.05rem; }
  .nxb-cal-days { gap: 2px; }
  .nxb-cal-weekdays { gap: 2px; }
  .nxb-cal-events { display: none; }
  .nxb-cal-day {
    min-height: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: transparent;
    border-radius: 12px;
    gap: 0;
  }
  .nxb-cal-day.is-today {
    background: transparent;
  }
  .nxb-cal-day.is-today .nxb-cal-num {
    box-shadow: inset 0 0 0 2px #74c0fc;
  }
  .nxb-cal-num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    font-size: 0.84rem;
  }
  .nxb-cal-day.is-has-events .nxb-cal-num {
    background: #12b886;
    color: #fff !important;
  }
  .nxb-cal-day.is-has-events.is-today .nxb-cal-num {
    box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.35);
  }
  .nxb-cal-badge {
    display: grid;
    place-items: center;
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--nxb-pill);
    background: #e67700;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    font-family: var(--nxb-display);
    line-height: 1;
  }
  .nxb-cal-undated-list .nxb-cal-chip {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .nxb-grid { grid-template-columns: minmax(0, 1fr); }
  .nxb-grid.is-cal { display: block; }
  .nxb-card {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }
  .nxb-card-actions { grid-template-columns: 1fr; }
  .nxb-edition {
    width: 100%;
    justify-content: space-between;
  }
  .nxb-edition select { flex: 1; min-width: 0; }
  .nxb-user-dropdown {
    right: -8px;
    min-width: min(88vw, 280px);
  }
  .nxb-modal {
    padding: 12px;
    align-items: end;
  }
  .nxb-modal-panel {
    width: 100%;
    max-height: min(88vh, 760px);
    border-radius: 22px 22px 16px 16px;
    padding: 22px 16px 18px;
  }
  .nxb-cal-num {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .nxb-view-btn { font-size: 0.74rem; padding: 9px 6px; }
  .nxb-cal-num {
    width: 30px;
    height: 30px;
    font-size: 0.74rem;
  }
  .nxb-nav-login { padding: 7px 10px; font-size: 0.72rem; }
}
