:root { color-scheme: light; --bg: #f6f7f9; --paper: #fffdf7; --ink: #17202a; --text: #17202a; --muted: #667085; --line: #d9dee8; --panel: #ffffff; --accent: #3b82f6; --accent-text: #1d4ed8; --soft: #eef3ff; --rule: #e9edf5; --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1200; padding: 10px 16px; border: 1px solid var(--accent-text); border-radius: 999px; background: var(--panel); color: var(--accent-text); font-weight: 900; text-decoration: none; box-shadow: 0 12px 36px rgba(23,32,42,.18); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body { margin: 0; font-family: var(--sans); color: var(--text); background: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px), var(--bg); background-size: 32px 32px, 32px 32px, auto; }
body[data-theme-key="no_frame"] { color-scheme: light; --bg: #f7f8fb; --paper: #ffffff; --text: #111217; --muted: #667085; --line: #d8e0ea; --panel: #ffffff; --soft: #f2f6fb; --rule: rgba(17,18,23,.07); --accent: #111217; --accent-text: #111217; background: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px), radial-gradient(circle at 18% 10%, rgba(0,210,255,.14), transparent 28%), radial-gradient(circle at 82% 18%, rgba(255,0,190,.12), transparent 26%), var(--bg); background-size: 28px 28px, 28px 28px, auto, auto, auto; }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
a { color: #1d4ed8; }
body[data-theme-key="no_frame"] a { color: #0f6f86; }
.top-link { display: inline-flex; margin-bottom: 18px; color: var(--muted); font-weight: 700; text-decoration: none; }
.hero { clear: both; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: end; padding: 26px 0 24px; border-bottom: 2px solid var(--text); }
.hero::before { content: attr(data-watermark); position: absolute; right: 0; top: -2px; color: rgba(23, 32, 42, .06); font-size: clamp(82px, 14vw, 180px); font-weight: 950; line-height: .8; pointer-events: none; }
.hero::after { content: ""; display: none; }
body[data-theme-key="no_frame"] .hero { align-items: stretch; border: 1px solid #111217; border-radius: 8px; padding: 28px; background: linear-gradient(135deg, rgba(0,210,255,.16), transparent 34%), linear-gradient(315deg, rgba(255,0,190,.11), transparent 34%), var(--panel); box-shadow: 8px 8px 0 rgba(0,210,255,.14), -6px -6px 0 rgba(255,0,190,.10); overflow: hidden; }
body[data-theme-key="no_frame"] .hero::before { right: 18px; top: 10px; color: rgba(17,18,23,.055); font-size: clamp(72px, 13vw, 168px); letter-spacing: 0; text-shadow: 2px 0 rgba(0,210,255,.24), -2px 0 rgba(255,0,190,.16); white-space: nowrap; }
body[data-theme-key="no_frame"] .hero::after { display: block; position: absolute; inset: 14px; border: 1px solid rgba(17,18,23,.2); border-left-color: rgba(0,210,255,.76); border-bottom-color: rgba(255,0,190,.52); border-radius: 6px; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; color: var(--accent-text); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
body[data-theme-key="no_frame"] .eyebrow { color: #0f6f86; }
h1 { margin: 0; font-size: clamp(36px, 7vw, 80px); line-height: .95; letter-spacing: 0; }
body[data-theme-key="no_frame"] h1 { text-transform: uppercase; text-shadow: 2px 0 rgba(0,210,255,.28), -2px 0 rgba(255,0,190,.18); }
.lead { max-width: 760px; margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.summary { position: relative; z-index: 1; display: grid; gap: 12px; border: 2px solid var(--text); border-radius: 8px; background: var(--paper); padding: 18px 18px 20px; box-shadow: 6px 6px 0 rgba(23, 32, 42, .08); overflow: hidden; }
.summary::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(23, 32, 42, .22); border-radius: 5px; pointer-events: none; }
.summary::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(23, 32, 42, .11); border-radius: 3px; pointer-events: none; }
body[data-theme-key="no_frame"] .summary { border: 1px solid #111217; background: rgba(255,255,255,.82); box-shadow: none; backdrop-filter: blur(8px); }
body[data-theme-key="no_frame"] .summary::before { inset: 0; border: 0; border-top: 4px solid var(--accent); border-radius: 0; background: linear-gradient(90deg, #f97316 0 16.6%, #2563eb 16.6% 33.2%, #f472b6 33.2% 49.8%, #f8fafc 49.8% 66.4%, #facc15 66.4% 83%, #16a34a 83% 100%); height: 4px; }
body[data-theme-key="no_frame"] .summary::after { display: none; }
.member-color-strip { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 2px; }
.member-color-strip span { height: 8px; border-radius: 999px; background: var(--member-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
body[data-theme-key="no_frame"] .member-color-strip { gap: 0; margin-top: 4px; }
body[data-theme-key="no_frame"] .member-color-strip span { height: 6px; border-radius: 0; box-shadow: none; }
.summary-meta { position: relative; z-index: 1; display: grid; gap: 8px; }
.summary p { margin: 0; color: var(--muted); line-height: 1.55; }
.summary strong { color: var(--text); }
.section { margin-top: 28px; }
.section > h2, .month-section > h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.event-card { position: relative; display: grid; gap: 9px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 8px; background: var(--panel); padding: 16px; box-shadow: 0 1px 0 rgba(23, 32, 42, .04); }
.event-anchor-alias { position: absolute; inset: 0 auto auto 0; width: 0; height: 0; pointer-events: none; }
body[data-theme-key="no_frame"] .event-card { border-color: rgba(17,18,23,.16); border-left-color: var(--accent); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,248,251,.9)), var(--panel); box-shadow: 3px 3px 0 rgba(0,210,255,.08), -2px -2px 0 rgba(255,0,190,.06); }
.event-head { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.event-date { margin: 0; color: var(--accent-text); font-weight: 900; }
.status { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--muted); background: #f8fafc; font-size: 12px; font-weight: 800; }
body[data-theme-key="no_frame"] .status { color: #111217; background: #f8fafc; border-color: rgba(17,18,23,.18); }
.event-card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.venue { margin: 0; color: var(--muted); line-height: 1.55; }
.map-link { color: #1d4ed8; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.participants { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.participant-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; border: 1px solid color-mix(in srgb, var(--member-color) 42%, var(--line)); border-radius: 999px; padding: 3px 9px; background: color-mix(in srgb, var(--member-color) 12%, #ffffff); color: #344054; font-size: 13px; font-weight: 800; line-height: 1.2; }
body[data-theme-key="no_frame"] .participant-chip { background: color-mix(in srgb, var(--member-color) 18%, #ffffff); color: #111217; }
.timeline, .notes { margin: 0; padding-left: 20px; color: #344054; line-height: 1.55; }
body[data-theme-key="no_frame"] .timeline, body[data-theme-key="no_frame"] .notes { color: #344054; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.source-pill { display: inline-flex; align-items: center; min-height: 26px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: var(--soft); color: #1d4ed8; font-size: 12px; font-weight: 800; text-decoration: none; }
body[data-theme-key="no_frame"] .source-pill { border-color: rgba(17,18,23,.14); background: #f8fafc; color: #0f6f86; }
.archive-section { margin-top: 38px; padding-top: 28px; border-top: 2px solid var(--line); }
.archive-heading { margin-bottom: 6px; }
.archive-heading .eyebrow { margin-bottom: 6px; }
.archive-heading h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.month-section { margin-top: 28px; }
.archive-section .month-section:first-of-type { margin-top: 18px; }
.schedule-layout { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
.past-section { margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.past-section > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; color: var(--text); font-size: 20px; font-weight: 900; list-style: none; }
.past-section > summary::-webkit-details-marker { display: none; }
.past-section > summary::after { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 18px; line-height: 1; }
.past-section[open] > summary::after { content: "-"; }
.past-section small { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 800; }
.past-section .month-section:first-of-type { margin-top: 18px; }
.past-section .past-events { margin-top: 18px; }
.month-filter { position: sticky; top: 14px; display: grid; gap: 0; padding: 4px 0 4px 18px; }
.month-filter::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--accent), var(--line)); border-radius: 999px; }
.month-filter button { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; width: 100%; min-height: 38px; border: 0; border-radius: 0; padding: 7px 0 7px 12px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 900; letter-spacing: 0; text-align: left; cursor: pointer; }
.month-filter button::before { content: ""; position: absolute; left: -18px; width: 10px; height: 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); box-shadow: 0 0 0 3px var(--bg); }
.month-filter button:hover, .month-filter button:focus-visible { color: var(--text); }
.month-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.month-filter button.is-active { color: var(--text); }
.month-filter button.is-active::before { border-color: var(--accent); background: var(--accent); }
.month-filter button span { min-width: 0; }
.month-filter button small { margin: 0; color: inherit; opacity: .72; font-size: 11px; }
.month-filter-status { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.is-filter-hidden { display: none !important; }
.archive-year-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.archive-year-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--panel); color: #1d4ed8; font-size: 13px; font-weight: 900; text-decoration: none; }
a.archive-year-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.archive-year-link small { color: var(--muted); font-size: 11px; font-weight: 800; }
.archive-year-link.is-current { border-color: var(--accent); color: var(--text); }
body[data-theme-key="no_frame"] .archive-year-link { border-color: rgba(17,18,23,.14); color: #0f6f86; }
body[data-theme-key="no_frame"] .archive-year-link.is-current { color: #111217; }
.member-groups { display: grid; gap: 18px; }
.member-group { display: grid; gap: 8px; }
.member-group h3 { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.3; }
.member-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.member-list li { display: grid; grid-template-columns: 14px 1fr; gap: 7px 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 10px; font-weight: 800; }
.member-list li.is-former { background: color-mix(in srgb, var(--panel) 82%, #f2f4f7); }
body[data-theme-key="no_frame"] .member-list li { border-color: rgba(17,18,23,.14); background: linear-gradient(90deg, color-mix(in srgb, var(--member-color) 15%, transparent), transparent 42%), var(--panel); box-shadow: 0 1px 0 rgba(17,18,23,.04); }
body[data-theme-key="no_frame"] .member-list li.is-former { background: linear-gradient(90deg, color-mix(in srgb, var(--member-color) 10%, transparent), transparent 42%), #f8fafc; }
.member-list small { grid-column: 2; color: var(--muted); font-weight: 600; }
.member-social-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.member-social-link { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; background: #f8fafc; color: #1d4ed8; font-size: 12px; font-weight: 900; line-height: 1.2; text-decoration: none; }
.member-social-link .x-icon { display: block; width: 12px; height: 12px; }
body[data-theme-key="no_frame"] .member-social-link { border-color: rgba(17,18,23,.14); background: #f8fafc; color: #0f6f86; }
.member-social-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.swatch { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 999px; background: var(--member-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.notice { margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
/* ライブレギュレーション基本方針(#742) */
.regulation-section .regulation-detail { display: grid; gap: 6px; }
.regulation-section .regulation-detail ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.regulation-section .regulation-detail > strong { display: none; }
.regulation-section .regulation-kind { margin-top: 12px; }
.regulation-section .regulation-kind h3 { margin: 0 0 4px; font-size: 14px; }
.regulation-section .reg-icon { font-weight: 900; }
.regulation-section .reg-allowed { color: #157347; }
.regulation-section .reg-prohibited { color: #b3261e; }
.regulation-section .reg-conditional { color: #8a5a00; }
/* カレンダービュー(R1-R9)。既定はリスト表示で、body.is-view-calendar で出し分ける(R2)。 */
.view-toggle { display: inline-flex; gap: 2px; margin-top: 18px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--panel); }
.view-toggle-button { border: 0; border-radius: 999px; min-height: 34px; padding: 6px 16px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.view-toggle-button.is-active { background: var(--text); color: var(--paper); }
/* 購読ブロック(R5): 既定は折りたたみで、表示切替の近くに置く */
.subscribe-block { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.subscribe-block summary { padding: 10px 14px; cursor: pointer; color: var(--accent-text); font-size: 13.5px; font-weight: 900; }
.subscribe-body { padding: 0 14px 12px; }
.subscribe-lead { margin: 0 0 10px; font-size: 13.5px; }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-action { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--accent-text); border-radius: 999px; background: var(--panel); color: var(--accent-text); font-family: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.subscribe-copy-fallback { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
/* display: flex がUAの[hidden]既定(display: none)に勝つため、hidden時を明示的に隠す */
.subscribe-copy-fallback[hidden] { display: none; }
.subscribe-copy-fallback input { flex: 1 1 240px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12.5px; }
.subscribe-notes { display: grid; gap: 4px; margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.event-actions { margin-top: 8px; }
.gcal-add-link { font-size: 12.5px; font-weight: 700; }
.calendar-section { display: none; }
body.is-view-calendar .calendar-section { display: block; }
body.is-view-calendar .upcoming-section, body.is-view-calendar .schedule-section, body.is-view-calendar .past-section { display: none; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 6px; }
.calendar-legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 800; }
.calendar-legend-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--cal-cat-color, #98a2b3); }
.cal-cat-live { --cal-cat-color: #2563eb; }
.cal-cat-meet { --cal-cat-color: #16a34a; }
.cal-cat-release { --cal-cat-color: #d97706; }
.cal-cat-member { --cal-cat-color: #9333ea; }
.cal-cat-other { --cal-cat-color: #64748b; }
.calendar-month { margin-top: 22px; }
.calendar-month h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekday { padding: 4px 2px; color: var(--muted); font-size: 11px; font-weight: 900; text-align: center; }
.calendar-day { display: grid; gap: 3px; align-content: start; min-height: 84px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 4px; }
.calendar-day.is-empty { border-style: dashed; background: transparent; }
.calendar-daynum { color: var(--muted); font-size: 11px; font-weight: 800; }
.cal-chip { display: block; overflow: hidden; border-left: 3px solid var(--cal-cat-color, #98a2b3); border-radius: 4px; padding: 2px 5px; background: color-mix(in srgb, var(--cal-cat-color, #98a2b3) 12%, var(--panel)); color: var(--text); font-size: 11.5px; font-weight: 800; line-height: 1.35; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip:hover .cal-chip-title, .cal-chip:focus-visible .cal-chip-title { text-decoration: underline; text-underline-offset: 2px; }
.cal-chip-multi { display: inline-block; margin-right: 4px; border-radius: 3px; padding: 0 3px; background: var(--cal-cat-color, #98a2b3); color: #ffffff; font-size: 9.5px; font-weight: 900; }
.cal-chip.is-status-cancelled, .cal-chip.is-status-postponed { opacity: .6; }
.cal-chip.is-status-cancelled .cal-chip-title, .cal-chip.is-status-postponed .cal-chip-title { text-decoration: line-through; }
.cal-chip.is-status-tentative { border-left-style: dashed; }
.cal-chip.is-status-completed { opacity: .74; }
.calendar-undated { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; border: 1px dashed var(--line); border-radius: 6px; padding: 8px; }
.calendar-undated-label { color: var(--muted); font-size: 12px; font-weight: 900; }
.calendar-undated .cal-chip, .calendar-agenda .cal-chip { white-space: normal; }
.calendar-mini { display: none; }
.calendar-mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calendar-mini-weekday { color: var(--muted); font-size: 10.5px; font-weight: 900; text-align: center; }
.calendar-mini-day { display: grid; place-items: center; min-height: 38px; border-radius: 6px; color: var(--text); font-size: 12.5px; font-weight: 800; text-decoration: none; }
.calendar-mini-day.has-events { background: var(--soft); }
.calendar-mini-dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent-text); }
.calendar-agenda { display: none; list-style: none; margin: 10px 0 0; padding: 0; }
.calendar-agenda-day { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--line); padding: 8px 0; }
.calendar-agenda-date { color: var(--muted); font-size: 12.5px; font-weight: 900; }
.calendar-agenda-chips { display: grid; gap: 4px; }
@media (max-width: 780px) {
  main { width: min(100% - 20px, 1120px); padding-top: 18px; }
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .hero::before { top: 12px; font-size: 86px; }
  .schedule-layout { grid-template-columns: 1fr; gap: 10px; }
  .month-filter { position: static; grid-auto-flow: column; grid-auto-columns: minmax(76px, max-content); overflow-x: auto; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
  .month-filter::before { left: 0; right: 0; top: auto; bottom: 8px; width: auto; height: 2px; }
  .month-filter button { min-height: 46px; padding: 4px 10px 14px; text-align: center; }
  .month-filter button::before { left: 50%; bottom: 3px; transform: translateX(-50%); }
  .event-list, .member-list { grid-template-columns: 1fr; }
  /* 狭幅では7列フルグリッドを出さず、ミニ月カレンダー+日別アジェンダに畳む(R8) */
  .calendar-grid { display: none; }
  .calendar-mini { display: block; }
  .calendar-agenda { display: block; }
}
