
    :root {
      --bg: #f7f7f7;
      --surface: #ffffff;
      --surface2: #f2f2f2;
      --border: #e2e2e2;
      --red: #cc2222;
      --red-light: #fff0f0;
      --navy: #152238;
      --orange: #e07000;
      --teal: #1a6b5e;
      --text: #111111;
      --text-muted: #666666;
      --text-dim: #999999;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Noto Sans JP', sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
    }

    header {
      background: var(--navy);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
      display: flex;
      flex-direction: column;
    }

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px; 
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
}

    .logo {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      text-decoration: none;
    }

    .logo-main {
      font-family: 'Pathway Gothic One', sans-serif;
      font-weight: 400;
      font-size: 18px;
      letter-spacing: 2px;
      color: #fff;
    }

    .logo-main .logo-red { color: var(--red); }

    .logo-main .logo-jp {
      font-size: 12px;
      letter-spacing: 1px;
    }

    .last-updated {
      font-size: 0.65rem;
      color: rgba(255,255,255,0.5);
      letter-spacing: 0.05em;
      margin-top: 0.15rem;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .last-updated::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      background: var(--red);
      border-radius: 50%;
      animation: blink 1.5s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.2; }
    }

.nav-bar {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 36px;
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
}
    .nav-bar a {
      color: rgba(255,255,255,0.85);
      text-decoration: none;
      font-size: 0.78rem;
      font-weight: 400;
      letter-spacing: 0.08em;
      padding: 0 1.25rem;
      height: 36px;
      display: flex;
      align-items: center;
      transition: background 0.15s, color 0.15s;
    }

    .nav-bar a:hover {
      background: rgba(0,0,0,0.15);
      color: #fff;
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
      background: none;
      border: none;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: #fff;
      border-radius: 2px;
    }

/* ▼ TOPに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  z-index: 500;
  display: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.back-to-top:hover {
  background: rgba(192, 57, 43, 0.3);
  border-color: #c0392b;
  color: #fff;
}
/* ▲ TOPに戻るボタン */


    .about-section {
      background: #f8f9fa;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 88px;
      z-index: 98;
    }

    .about-toggle {
      width: 100%;
      background: none;
      border: none;
      padding: 0.75rem 2rem;
      text-align: left;
      cursor: pointer;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .about-toggle:hover {
      background: #f0f0f0;
    }

    .about-content {
      display: none;
      padding: 0 2rem 1rem;
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.8;
    }

    .about-content.open {
      display: block;
    }

    .about-content a {
      color: var(--teal);
    }

    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 1.75rem 2rem;
    }

    .stats-bar {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 0.5rem;
    }

    .stat {
      background: var(--surface);
      padding: 1.1rem 1.25rem;
      border: 1px solid var(--border);
      border-left: 4px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .stat:nth-child(1) {
      border-left-color: var(--red);
    }

    .stat:nth-child(2) {
      border-left-color: var(--navy);
    }

    .stat:nth-child(3) {
      border-left-color: var(--orange);
    }

    .stat:nth-child(4) {
      border-left-color: var(--teal);
    }

    .stat-num {
      font-family: 'Outfit', sans-serif;
      font-weight: 900;
      font-size: 2.2rem;
      color: var(--text);
      line-height: 1;
    }

    .stat-label {
      font-size: 0.65rem;
      color: var(--text-muted);
      letter-spacing: 0.05em;
      font-weight: 500;
      margin-top: 0.2rem;
    }

    .stat-label-en {
      font-size: 0.75rem;
      color: #999;
      margin-top: 2px;
    }

    .weekly-note {
      font-size: 0.75rem;
      color: var(--text-muted);
      padding: 0 0 0.5rem 3px;
      margin: 0;
    }

    .filters {
      display: flex;
      gap: 0.4rem;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
      align-items: center;
      padding: 0 16px 1rem;
      max-width: 1100px;
      margin-left: auto;
      margin-right: auto;
    }

    .filter-label {
      font-size: 0.62rem;
      color: var(--text-muted);
      letter-spacing: 0.1em;
      font-weight: 700;
      margin-right: 0.3rem;
      text-transform: uppercase;
    }

    .filter-btn {
      background: var(--surface);
      border: 1.5px solid var(--border);
      color: var(--text-muted);
      padding: 0.4rem 0.95rem;
      font-size: 0.75rem;
      font-family: 'Noto Sans JP', sans-serif;
      cursor: pointer;
      transition: all 0.15s;
      font-weight: 500;
      border-radius: 999px;
    }

    .filter-btn:hover {
      border-color: var(--navy);
      color: var(--navy);
    }

    .filter-btn.active {
      background: var(--navy);
      color: #fff;
      border-color: var(--navy);
      font-weight: 700;
    }

    .divider {
      width: 1px;
      height: 22px;
      background: var(--border);
      margin: 0 0.2rem;
    }

    .view-toggle {
      margin-left: auto;
      display: flex;
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .view-btn {
      background: var(--surface);
      border: none;
      border-right: 1px solid var(--border);
      color: var(--text-muted);
      padding: 0.38rem 0.85rem;
      cursor: pointer;
      font-size: 0.75rem;
      font-family: 'Noto Sans JP', sans-serif;
      transition: all 0.15s;
    }

    .view-btn:last-child {
      border-right: none;
    }

    .view-btn.active {
      background: var(--navy);
      color: #fff;
      font-weight: 700;
    }

    .demo-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .demo-card {
      background: var(--surface);
      display: grid;
      grid-template-columns: 80px 1fr auto;
      border: 1px solid var(--border);
      border-left: 4px solid var(--border);
      transition: all 0.15s;
      animation: fadeUp 0.35s ease both;
    }

    .demo-card:hover {
      border-left-color: var(--red);
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      transform: translateX(2px);
    }

    .section-divider {
      text-align: center;
      margin: 2rem 0 1rem;
      font-weight: 900;
      font-size: 0.9rem;
      color: var(--text-muted);
      border-top: 2px solid var(--border);
      padding-top: 1rem;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(6px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .demo-card:nth-child(1) {
      animation-delay: 0.04s;
    }

    .demo-card:nth-child(2) {
      animation-delay: 0.08s;
    }

    .demo-card:nth-child(3) {
      animation-delay: 0.12s;
    }

    .demo-card:nth-child(4) {
      animation-delay: 0.16s;
    }

    .demo-card:nth-child(5) {
      animation-delay: 0.20s;
    }

    .demo-date-col {
      background: var(--surface2);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1rem 0.5rem;
      gap: 0.05rem;
    }

    .demo-month {
      font-family: 'DM Mono', monospace;
      font-size: 0.58rem;
      color: var(--red);
      letter-spacing: 0.12em;
    }

    .demo-day {
      font-family: 'Outfit', sans-serif;
      font-weight: 900;
      font-size: 2rem;
      color: var(--text);
      line-height: 1;
    }

    .demo-weekday {
      font-family: 'DM Mono', monospace;
      font-size: 0.58rem;
      color: var(--text-muted);
    }

    .demo-body {
      padding: 1rem 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .demo-tags {
      display: flex;
      gap: 0.3rem;
      flex-wrap: wrap;
    }

    .tag {
      font-size: 0.6rem;
      padding: 0.15rem 0.5rem;
      letter-spacing: 0.04em;
      font-weight: 700;
    }

    .tag-pref {
      background: var(--red-light);
      color: var(--red);
      border: 1px solid #f5c0c0;
    }

    .tag-theme {
      background: #fff8ee;
      color: var(--orange);
      border: 1px solid #fcdca8;
    }

    .tag-upcoming {
      background: #eaf4f2;
      color: var(--teal);
      border: 1px solid #b0d8d2;
    }

    .new-badge {
      font-family: 'DM Mono', monospace;
      font-size: 0.5rem;
      font-weight: 700;
      background: var(--red);
      color: #fff;
      padding: 0.1rem 0.3rem;
      letter-spacing: 0.08em;
      margin-bottom: 0.2rem;
    }

#tab-count-weekly {
      position: relative;
      display: inline-block;
    }
.tab-new-dot {
      display: inline-block;
      font-family: 'DM Mono', monospace;
      font-size: 0.45rem;
      font-weight: 700;
      background: var(--red);
      color: #fff;
      padding: 0.1rem 0.3rem;
      letter-spacing: 0.05em;
      margin-left: 3px;
      vertical-align: 2px;
      border-radius: 2px;
      line-height: 1.4;
    }

    .tab-count {
      font-size: 0.7em;
      opacity: 0.8;
      margin-left: 2px;
      font-weight: 500;
    }

    .demo-title {
      font-size: 0.95rem;
      font-weight: 700;
      line-height: 1.5;
      color: var(--text);
    }

    .demo-meta {
      display: flex;
      gap: 1rem;
      font-size: 0.7rem;
      color: var(--text-muted);
      flex-wrap: wrap;
    }

    .demo-meta span {
      display: inline;
      align-items: flex-start;
      gap: 0.25rem;
    }

    .copy-link-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0 0 0 6px;
      opacity: 0.4;
      vertical-align: middle;
      transition: opacity 0.2s;
    }

    .copy-link-btn:hover {
      opacity: 0.8;
    }

    .copy-link-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--navy);
      color: #fff;
      padding: 8px 18px;
      border-radius: 20px;
      font-size: 0.85rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
      z-index: 9999;
    }

    .copy-link-toast.show {
      opacity: 1;
    }

    /* ── ACTIONS COLUMN ── */
    .demo-actions {
      padding: 1rem 1.1rem;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      gap: 0.5rem;
      border-left: 1px solid var(--border);
      min-width: 140px;
    }

    /* 行きますボタン */
    .going-btn {
      border-radius: 8px;
      background: var(--red);
      color: #fff;
      border: 1.5px solid var(--red);
      padding: 0.5rem 0.75rem;
      font-size: 0.75rem;
      font-family: 'Noto Sans JP', sans-serif;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      transition: all 0.18s;
      white-space: nowrap;
    }

    .going-btn:hover {
      background: #aa1a1a;
      border-color: #aa1a1a;
      transform: scale(1.03);
    }

    .going-btn.going {
      background: #eaf4f2;
      color: var(--teal);
      border-color: var(--teal);
    }

    .going-btn.going:hover {
      background: #d0ece8;
      transform: scale(1.03);
    }

    .going-count {
      font-size: 0.65rem;
      font-weight: 700;
      font-family: 'DM Mono', monospace;
      text-align: left;
      color: var(--red);
      min-height: 1.2em;
      transition: all 0.2s;
      line-height: 1.3;
      width: 100%;
    }

    .going-count.zero {
      color: var(--text-dim);
      font-weight: 400;
    }

    .cheer-btn {
      border-radius: 8px;
      background: #1e3a5f;
      color: #fff;
      border: 1.5px solid #1e3a5f;
      padding: 0.5rem 0.75rem;
      font-size: 0.75rem;
      font-family: 'Noto Sans JP', sans-serif;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      transition: all 0.18s;
      white-space: nowrap;
    }

    .cheer-btn:hover {
      background: #162d4a;
      border-color: #162d4a;
      transform: scale(1.03);
    }

    .cheer-btn.cheered {
      background: #e8eef5;
      color: #1e3a5f;
      border-color: #1e3a5f;
    }

    .cheer-btn.cheered:hover {
      background: #d0dcea;
      transform: scale(1.03);
    }

    .cheer-count {
      font-size: 0.65rem;
      font-weight: 700;
      font-family: 'DM Mono', monospace;
      color: #1e3a5f;
      min-height: 1.2em;
      line-height: 1.3;
      width: 100%;
    }

    .cheer-count.zero {
      color: var(--text-dim);
      font-weight: 400;
    }

    .sub-actions {
      display: flex;
      gap: 0.5rem;
      justify-content: flex-start;
    }

    .share-x {
      border-radius: 8px;
      background: #4a5568;
      color: #fff;
      padding: 0.4rem 0.75rem;
      font-size: 0.68rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      font-family: 'Noto Sans JP', sans-serif;
      font-weight: 700;
      transition: background 0.15s;
      text-decoration: none;
      white-space: nowrap;
      border: none;
    }

    .share-x:hover {
      background: #3a4558;
    }

    .detail-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #4a5568;
      color: #fff;
      text-decoration: none;
      padding: 0.35rem 0.75rem;
      border-radius: 8px;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      transition: background 0.15s;
    }

    .detail-btn:hover {
      background: #3a4558;
    }

    .map-link {
      color: var(--teal);
      font-size: 0.65rem;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.15s;
      text-align: center;
    }

    .map-link:hover {
      color: var(--red);
    }

    .gcal-link {
      font-size: 0.65rem;
      color: var(--teal);
      text-decoration: none;
      border: 1px solid var(--teal);
      border-radius: 3px;
      padding: 0.05rem 0.3rem;
      margin-left: 0.3rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      vertical-align: middle;
      white-space: nowrap;
      display: inline-block;
    }

    .gcal-link:hover {
      background: var(--teal);
      color: #fff;
    }

    .date-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-top: 1.75rem;
      margin-bottom: 0.6rem;
    }

    .date-header:first-child {
      margin-top: 0;
    }

    .date-header-text {
      font-family: 'Outfit', sans-serif;
      font-weight: 900;
      font-size: 0.85rem;
      color: var(--text);
      letter-spacing: 0.05em;
      white-space: nowrap;
    }

    .date-header-line {
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .calendar-view {
      display: none;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
    }

    .cal-header {
      background: var(--navy);
      color: rgba(255, 255, 255, 0.7);
      text-align: center;
      padding: 0.5rem;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.08em;
    }

    .cal-day {
      background: var(--surface);
      min-height: 86px;
      padding: 0.45rem;
      cursor: pointer;
      transition: all 0.12s;
      border: 1px solid var(--border);
    }

    .cal-day:hover {
      border-color: var(--red);
    }

    .cal-day.has-demo {
      border-left: 3px solid var(--red);
    }

    .cal-day.other-month {
      opacity: 0.3;
    }

    .cal-num {
      font-family: 'Outfit', sans-serif;
      font-weight: 700;
      font-size: 0.78rem;
      color: var(--text-dim);
      margin-bottom: 0.35rem;
    }

    .cal-event {
      background: var(--red-light);
      border-left: 2px solid var(--red);
      padding: 0.18rem 0.3rem;
      font-size: 0.58rem;
      color: var(--text);
      margin-bottom: 0.18rem;
      line-height: 1.3;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    /* バッジ */
    .cal-badge {
      font-size: 10px;
      font-weight: bold;
      padding: 1px 4px;
      border-radius: 10px;
      margin-top: 2px;
      display: inline-block;
      white-space: nowrap;
    }

    .badge-low,
    .badge-mid,
    .badge-high {
      background: #1e3a5f;
      color: #fff;
    }

    /* イベントリスト（折りたたみ） */
    .cal-event-list {
      display: none;
      position: absolute;
      z-index: 100;
      background: #fff;
      border: 2px solid #1e3a5f;
      border-radius: 6px;
      padding: 8px;
      left: 0;
      top: 100%;
      min-width: 220px;
      max-height: 300px;
      overflow-y: auto;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .cal-day.open .cal-event-list {
      display: block;
    }

    .cal-day {
      position: relative;
      cursor: pointer;
    }

    .cal-day.empty {
      cursor: default;
    }

    .cal-event {
      font-size: 11px;
      padding: 3px 0;
      border-bottom: 1px solid #eee;
    }

    .cal-event:last-child {
      border-bottom: none;
    }

    .cal-day:nth-child(7n) .cal-event-list,
    .cal-day:nth-child(7n-1) .cal-event-list {
      left: auto;
      right: 0;
    }

    .no-results {
      padding: 3.5rem 2rem;
      text-align: center;
      color: var(--text-muted);
      font-size: 0.85rem;
      display: none;
    }

    footer {
      border-top: 3px solid var(--navy);
      margin-top: 4rem;
      padding: 2rem;
      text-align: center;
      font-size: 0.7rem;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      line-height: 2.2;
      background: var(--surface);
    }

    footer a {
      color: var(--red);
      text-decoration: none;
    }

    .map-inline {
      font-size: 0.68rem;
      color: var(--teal);
      text-decoration: none;
      border: 1px solid var(--teal);
      border-radius: 3px;
      padding: 0.05rem 0.3rem;
      margin-left: 0.3rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      vertical-align: middle;
      display: inline-block;
    }

    .map-inline:hover {
      background: var(--teal);
      color: #fff;
    }


    @media (max-width: 700px) {
      .demo-card {
        grid-template-columns: 68px 1fr;
        grid-template-rows: auto auto;
      }

      .demo-date-col {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: stretch;
      }

      .demo-body {
        grid-column: 2;
        grid-row: 1;
      }

      .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
      }

      .cal-day {
        min-height: 52px;
        padding: 0.25rem;
      }

      .cal-num {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
      }

      .cal-event {
        font-size: 0.5rem;
        padding: 0.1rem 0.2rem;
        -webkit-line-clamp: 1;
      }

      .demo-actions {
        grid-column: 2;
        grid-row: 2;
        border-left: none;
        border-top: 1px solid var(--border);
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        padding: 0.6rem 1rem;
        gap: 0.35rem;
        min-width: unset;
        width: 100%;
        overflow: hidden;
      }

      .going-btn {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.80rem;
        padding: 0.7rem 0.5rem;
      }

      .cheer-btn {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.80rem;
        padding: 0.7rem 0.5rem;
      }

      .going-count {
        grid-column: 1;
        grid-row: 2;
        min-width: unset;
        font-size: 0.67rem;
        text-align: center;
        padding: 0 0.25rem;
      }

      .cheer-count {
        grid-column: 2;
        grid-row: 2;
        min-width: unset;
        font-size: 0.67rem;
        text-align: center;
        padding: 0 0.25rem;
      }

      .sub-actions {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start;
        margin-top: 0.3rem;
      }

      .sub-actions .share-x,
      .sub-actions .detail-btn {
        width: fit-content;
        font-size: 0.75rem;
        padding: 0.3rem 0.9rem;
        background: #4a5568;
        opacity: 0.85;
        border-radius: 6px;
      }

      .stats-bar {
        grid-template-columns: repeat(2, 1fr);
      }

      header {
        padding: 0;
      }

      .header-top {
        padding: 0;
      }

      .header-top-inner {
        padding: 0 1rem;
      }

      .about-section {
        top: 52px;
      }

      .container {
        padding: 1rem;
      }

      .logo-sub {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .hamburger {
        display: flex;
      }

      .nav-bar {
        display: none;
        flex-direction: column;
        height: auto;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 99;
        background: rgba(15, 20, 35, 0.97);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      }

      .nav-bar.open {
        display: flex;
      }

      .nav-bar-inner {
        flex-direction: column;
        width: 100%;
        padding: 0;
      }

      .nav-bar a {
        justify-content: flex-start;
        padding-left: 2.5rem;
        width: 100%;
        height: 44px;
        gap: 10px;
        transition: background 0.15s, color 0.15s;
      }

      .nav-bar a::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        flex-shrink: 0;
        transition: background 0.15s, transform 0.15s;
      }

      .nav-bar a:hover {
        background: rgba(204,34,34,0.15);
        color: #fff;
      }

      .nav-bar a:hover::before {
        background: rgba(204,34,34,0.7);
        transform: scale(1.3);
      }

      .nav-bar a.active::before {
        background: #cc2222;
        transform: scale(1.4);
      }
  /* ▼ TOPに戻るボタン（モバイル調整） */
  .back-to-top {
    bottom: 18px;
    right: 18px;
    padding: 9px 18px;
    font-size: 11.5px;
    letter-spacing: 1.5px;
  }
  /* ▲ TOPに戻るボタン */
    }

@media (max-width: 360px) {
  .container {
    padding: 0.5rem;
  }
  
  .demo-actions {
    grid-template-columns: 1fr;
    padding: 0.6rem 0.5rem;
  }

  .demo-content {
    padding: 0.3rem;
  }
  
  .demo-card {
    margin: 0;
  }

  .demo-body {
    padding: 0.5rem 0.2rem 0.5rem 0.6rem;
  }
  
  .going-btn {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.7rem;
  }

  .going-count {
    grid-column: 1;
    grid-row: 2;
  }
  
  .cheer-btn {
    grid-column: 1;
    grid-row: 3;
    font-size: 0.7rem;
  }
  
  .cheer-count {
    grid-column: 1;
    grid-row: 4;
  }
  
  .sub-actions {
    grid-column: 1;
    grid-row: 5;
  }
  /* 🆕 タブ：超小画面対応 */
  .view-tab {
    font-size: 11px;
    padding: 8px 2px;
    letter-spacing: -0.02em;
  }
  .view-tabs {
    padding: 0 8px;
  }
  .view-tabs-inner {
    padding: 3px;
  }

  .tab-count {
      font-size: 0.7em;
      opacity: 0.7;
      margin-left: 2px;
      font-weight: 500;
    }

  #tab-count-weekly {
      font-size: 0;  /* テキストだけ消す（NEWバッジは表示維持） */
      margin: 0;
    }
  .tab-new-dot {
      font-size: 0.45rem !important;  /* バッジ内のNEW文字サイズは戻す */
      position: static;
      transform: none;
      margin-left: 3px;
    }

  /* 🆕 検索バー：超小画面対応 */
  .search-wrap {
    padding: 0 8px;
  }
  .search-input {
    padding: 10px 36px 10px 36px;
  }
  .search-icon {
    left: 20px;
  }
  .search-clear {
    right: 16px;
  }
  .search-result-info {
    padding: 0 8px;
    font-size: 11px;
  }

  /* 🆕 地域フィルター：超小画面対応 */
  .filters {
    padding: 0 8px 1rem;
    gap: 5px;
  }
  .filter-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  /* 🆕 翌月件数表示：超小画面対応 */
  .stat-next-month {
    flex-wrap: wrap;
    gap: 2px;
  }
  .stat-next-month-num {
    font-size: 1rem;
  }
  .stat-next-month-label {
    font-size: 0.6rem;
  }
  /* ▼ TOPに戻るボタン（極小画面調整） */
  .back-to-top {
    bottom: 14px;
    right: 14px;
    padding: 7px 14px;
    font-size: 10.5px;
    letter-spacing: 1px;
  }
  /* ▲ TOPに戻るボタン */
}

.solidarity-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a2e;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 16px 16px;
  border: none;
  border-left: 4px solid #c0392b;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.15);
}

.solidarity-banner:hover {
  background: #1a1a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.25);
}

.solidarity-banner-text {
  flex: 1;
}

.solidarity-banner-label {
  font-family: 'Pathway Gothic One', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #c0392b;
  margin-bottom: 6px;
}

.solidarity-banner-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 2px;
}

.solidarity-banner-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.solidarity-banner-arrow {
  font-family: 'Pathway Gothic One', sans-serif;
  font-size: 14px;
  color: #c0392b;
  letter-spacing: 2px;
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid rgba(192, 57, 43, 0.5);
  border-radius: 6px;
  transition: all 0.2s;
}

.solidarity-banner:hover .solidarity-banner-arrow {
  background: #c0392b;
  color: #ffffff;
  border-color: #c0392b;
}
    /* ============================================ */
    /* 🆕 検索バー */
    /* ============================================ */
    .search-wrap {
      max-width: 1100px;
      margin: 0 auto 12px;
      padding: 0 16px;
      position: relative;
    }
    .search-input {
      width: 100%;
      padding: 12px 40px 12px 40px;
      font-size: 16px; /* iOSの自動ズーム防止 */
      border: 2px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text);
      font-family: inherit;
      transition: border-color 0.15s;
      -webkit-appearance: none;
    }

    /* 🆕 ブラウザ標準のクリアボタン（×）を非表示 */
    .search-input::-webkit-search-cancel-button {
      -webkit-appearance: none;
      appearance: none;
    }
    .search-input::-ms-clear {
      display: none;
    }
    .search-input:focus {
      outline: none;
      border-color: var(--navy);
    }
    .search-input::placeholder {
      color: var(--text-dim);
    }
    .search-icon {
      position: absolute;
      left: 28px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
      width: 18px;
      height: 18px;
    }
    .search-clear {
      position: absolute;
      right: 24px;
      top: 50%;
      transform: translateY(-50%);
      background: var(--text-dim);
      color: white;
      border: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 14px;
      line-height: 1;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .search-clear.is-visible {
      display: flex;
    }
    .search-clear:hover {
      background: var(--text-muted);
    }
    .search-result-info {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 16px;
      font-size: 12px;
      color: var(--text-muted);
      min-height: 0;
      margin-bottom: 0;
      transition: margin-bottom 0.15s;
    }
    .search-result-info:not(:empty) {
      min-height: 1.2em;
      margin-bottom: 8px;
    }
    .search-result-info.has-result {
      color: var(--navy);
      font-weight: 500;
    }
    .search-result-info.no-result {
      color: var(--red);
    }
    .search-hit {
      background: var(--red-light);
      color: var(--red);
      padding: 0 3px;
      border-radius: 2px;
      font-weight: bold;
    }

    /* ============================================ */
    /* 🆕 タブ切替（直近のデモ/定例デモ/カレンダー） */
    /* ============================================ */
    .view-tabs {
      max-width: 1100px;
      margin: 0 auto 12px;
      padding: 0 16px;
    }
    .view-tabs-inner {
      display: flex;
      background: var(--surface2);
      border-radius: 10px;
      padding: 4px;
      gap: 2px;
    }
    .view-tab {
      flex: 1;
      background: transparent;
      border: none;
      padding: 10px 8px;
      cursor: pointer;
      border-radius: 7px;
      font-size: 13px;
      font-family: inherit;
      color: var(--text-muted);
      font-weight: 500;
      transition: all 0.15s;
    }
    .view-tab:hover {
      color: var(--text);
    }
    .view-tab.is-active {
      background: var(--surface);
      color: var(--navy);
      font-weight: bold;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    @media (max-width: 600px) {
      .view-tab {
        font-size: 12px;
        padding: 9px 4px;
      }
    }

    /* ============================================ */
    /* 🆕 翌月件数表示 */
    /* ============================================ */
    .stat-next-month {
      margin-top: 8px;
      padding-top: 6px;
      border-top: 1px dashed var(--border);
      font-size: 0.7rem;
      color: var(--text-muted);
      display: none;
      align-items: baseline;
      gap: 4px;
    }
    .stat-next-month.is-visible {
      display: flex;
    }
    .stat-next-month-num {
      font-family: 'Pathway Gothic One', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--navy);
      line-height: 1;
    }
    .stat-next-month-label {
      font-size: 0.65rem;
      color: var(--text-muted);
    }
