:root {
  color-scheme: dark;
  --bg: #090711;
  --surface: #151021;
  --surface-raised: #1d1530;
  --surface-soft: #251a3d;
  --text: #fbf7ff;
  --muted: #bcb0cf;
  --line: rgba(214, 188, 255, .18);
  --accent: #a875ff;
  --accent-strong: #d7c1ff;
  --accent-soft: rgba(168, 117, 255, .16);
  --mint: #76f0d2;
  --amber: #ffd27a;
  --ink: #fbf7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background:
    linear-gradient(180deg, rgba(70, 38, 124, .42) 0, rgba(9, 7, 17, 0) 360px),
    radial-gradient(900px 520px at 18% -8%, rgba(168, 117, 255, .32), transparent 62%),
    radial-gradient(760px 480px at 92% 6%, rgba(118, 240, 210, .12), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  letter-spacing: 0;
}

a { color: inherit; }

.site {
  min-height: 100vh;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 7, 17, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brandIcon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(215, 193, 255, .26), 0 10px 24px rgba(168, 117, 255, .28);
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navLinks a,
.textLink {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.navLinks a {
  padding: 9px 10px;
  border-radius: var(--radius);
}

.navLinks a[aria-current="page"],
.navLinks a:hover,
.textLink:hover {
  color: var(--text);
  background: rgba(168, 117, 255, .16);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero {
  max-width: 820px;
  padding: 16px 0 34px;
}

.eyebrow {
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 14px;
}

.hero h1,
.pageTitle {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(168, 117, 255, .32);
}

.lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.heroActions,
.actionRow,
.backRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.heroActions { margin-top: 26px; }

.btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 12px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: rgba(29, 21, 48, .78);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.btn.primary {
  color: #120d1f;
  background: linear-gradient(135deg, var(--accent-strong), var(--mint));
  border-color: transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: wait; opacity: .72; transform: none; }

.featurePanel,
.doc,
.eventsPanel {
  background:
    linear-gradient(180deg, rgba(168, 117, 255, .08), rgba(168, 117, 255, 0) 180px),
    rgba(21, 16, 33, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.featurePanel {
  padding: 20px;
}

.panelTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.miniTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.miniText {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.appIconLarge {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.linkbox {
  margin-top: 16px;
  padding: 13px;
  color: var(--muted);
  background: rgba(37, 26, 61, .74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(214, 188, 255, .16);
  margin-top: 18px;
}

.stat {
  padding: 14px;
  background: rgba(21, 16, 33, .9);
}

.stat b {
  display: block;
  font-size: 20px;
  color: var(--accent-strong);
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sectionHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 14px;
}

.sectionHeader h2 {
  margin: 0;
  font-size: 24px;
}

.sectionHeader p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.eventsPanel {
  overflow: hidden;
}

.eventToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(168, 117, 255, .08);
}

.eventStatus {
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
}

.eventList {
  display: grid;
}

.eventItem {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.eventItem:last-child { border-bottom: 0; }
.eventItem:hover { background: rgba(168, 117, 255, .1); }

.dateBadge {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(168, 117, 255, .22), rgba(37, 26, 61, .92)),
    var(--surface-soft);
  text-align: center;
  box-shadow: inset 0 0 22px rgba(168, 117, 255, .12);
}

.dateBadge .month {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dateBadge .day {
  margin-top: 3px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}

.dateBadge .time {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.eventTitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 900;
  color: var(--text);
}

.eventMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: rgba(168, 117, 255, .1);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pill:nth-child(2) {
  color: var(--amber);
  background: rgba(255, 210, 122, .08);
}

.empty {
  padding: 30px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.doc {
  width: min(820px, 100%);
  padding: 30px;
}

.doc h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.doc .meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 10px 0 22px;
}

.doc h2 {
  margin: 26px 0 10px;
  font-size: 17px;
}

.doc p,
.doc li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}

.doc ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.notice {
  padding: 14px;
  color: var(--muted);
  background: rgba(37, 26, 61, .74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
}

.detailHero {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.detailKicker {
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.detailTitle {
  margin: 0;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(168, 117, 255, .32);
}

.detailMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detailActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.detailGrid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 26px;
}

.detailPanel {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(168, 117, 255, .08), rgba(168, 117, 255, 0) 180px),
    rgba(21, 16, 33, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detailPanel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.detailList {
  display: grid;
  gap: 13px;
}

.detailRow {
  display: grid;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.detailRow:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detailLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detailValue {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.detailText {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detailLoading {
  padding: 28px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
}

.footerInner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.footerLinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footerLinks a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footerLinks a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .nav {
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    gap: 10px;
  }

  .navLinks {
    justify-content: flex-start;
  }

  .navLinks a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .shell {
    padding-top: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero h1,
  .pageTitle {
    font-size: 45px;
  }

  .eventToolbar,
  .sectionHeader {
    display: block;
  }

  .eventToolbar .eventStatus {
    display: block;
    margin-top: 4px;
  }

  .sectionHeader .textLink {
    display: inline-flex;
    margin-top: 12px;
  }

  .eventItem {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .dateBadge {
    min-height: 76px;
  }

  .dateBadge .day {
    font-size: 25px;
  }

  .eventTitle {
    font-size: 16px;
  }

  .detailGrid {
    grid-template-columns: 1fr;
  }

  .detailPanel {
    padding: 18px;
  }

  .detailTitle {
    font-size: 38px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .doc {
    padding: 22px 18px;
  }
}
