:root {
  --navy: #172554;
  --blue: #2563eb;
  --sky: #e0f2fe;
  --orange: #f97316;
  --green: #16a34a;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #dbe4f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(249, 115, 22, 0.16), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 45%, #f8fafc 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(23, 37, 84, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 37, 84, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  z-index: -1;
}

a {
  color: inherit;
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.45rem;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.9em;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-180%);
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.78);
  border-bottom: 1px solid rgba(219, 228, 240, 0.72);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 900;
  color: var(--navy);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #dbeafe;
  color: var(--blue);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
  color: var(--navy);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero-section {
  padding: 5rem 0 2.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.section-panel {
  border: 1px solid rgba(219, 228, 240, 0.88);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border-radius: 2.2rem;
  padding: clamp(2rem, 5vw, 4.2rem);
}

.hero-copy::after {
  content: '';
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(37, 99, 235, 0.16));
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: #475569;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-action,
.secondary-action,
.editor-open-button,
.download-map-button,
.editor-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.secondary-action,
.download-map-button,
.editor-open-button {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.primary-action:hover,
.secondary-action:hover,
.editor-open-button:hover,
.download-map-button:hover,
.editor-tools button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.14);
}

.hero-panel {
  border-radius: 2rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
}

.pulse-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.8rem rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.event-summary {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.event-summary div {
  padding: 1rem;
  border-radius: 1.2rem;
  background: var(--soft);
  border: 1px solid var(--line);
}

.event-summary dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.event-summary dd {
  margin: 0.25rem 0 0;
  color: var(--navy);
  font-weight: 900;
}

.countdown-card {
  margin-top: auto;
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--navy), #1d4ed8);
  color: #fff;
  display: grid;
  gap: 0.25rem;
}

.countdown-label {
  color: #bfdbfe;
  font-weight: 700;
}

#countdown-days {
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-panel {
  margin-top: 1.25rem;
  border-radius: var(--radius-xl);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.section-heading {
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-heading p:not(.section-kicker) {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.split-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.datetime-cards,
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: '';
  position: absolute;
  right: -2.4rem;
  top: -2.4rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  opacity: 0.18;
}

.info-card i {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-weight: 900;
}

.info-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.accent-blue i { color: var(--blue); }
.accent-orange i { color: var(--orange); }
.accent-green i { color: var(--green); }
.accent-blue::after { background: var(--blue); }
.accent-orange::after { background: var(--orange); }
.accent-green::after { background: var(--green); }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem 12rem;
  gap: 0.85rem;
  margin: 1rem 0;
}

.search-field,
.select-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.search-field input,
.select-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.company-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
  color: var(--muted);
  font-weight: 700;
}

.company-stats span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.company-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.company-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.company-card:hover,
.company-card:focus-visible,
.company-card.is-selected {
  transform: translateY(-4px) rotate(-0.35deg);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  border-color: #93c5fd;
  outline: 0;
}

.company-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.company-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.45;
}

.booth-badge {
  flex: 0 0 auto;
  min-width: 4.2rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.9rem;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
  text-align: center;
}

.industry-pill {
  width: fit-content;
  margin: 0.85rem 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 900;
  font-size: 0.82rem;
}

.company-catch {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.7;
}

.company-description {
  margin: 0.55rem 0 1rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.tag-list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list span {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
}

.empty-message {
  padding: 1.2rem;
  border-radius: 1rem;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1rem;
}

.map-frame {
  margin: 0;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.map-frame img {
  display: block;
  width: 100%;
  min-height: 22rem;
  object-fit: contain;
  border-radius: 1rem;
  background: #f8fafc;
}

.map-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.booth-compass {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
}

.booth-compass h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}

.booth-compass p {
  color: var(--muted);
  line-height: 1.7;
}

.booth-chips {
  display: grid;
  gap: 0.55rem;
}

.booth-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.booth-chip.is-selected {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
  animation: chipPop 0.45s ease;
}

@keyframes chipPop {
  50% { transform: scale(1.03); }
}

.notice-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.notice-toggle {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.notice-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.notice-body {
  padding: 0 1rem 1rem;
  color: #475569;
  line-height: 1.8;
}

.notice-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.notice-card.is-collapsed .notice-body {
  display: none;
}

.notice-card.is-collapsed .notice-toggle .fa-chevron-down {
  transform: rotate(-90deg);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), #1d4ed8);
  color: #fff;
}

.contact-card h2 {
  color: #fff;
}

.contact-card p,
.contact-card .section-kicker {
  color: #dbeafe;
}

.contact-details {
  display: grid;
  gap: 0.65rem;
  font-style: normal;
}

.contact-details a,
.contact-details span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 800;
}

.editor-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.editor-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.editor-drawer.is-open .editor-backdrop {
  opacity: 1;
}

.editor-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(760px, 100%);
  overflow: auto;
  padding: 1.25rem;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.2);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.editor-drawer.is-open .editor-panel {
  transform: translateX(0);
}

.editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.editor-header h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}

.editor-header p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.75;
}

.icon-button {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.editor-tools button {
  background: #eff6ff;
  color: #1d4ed8;
}

.import-box {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px dashed #93c5fd;
  border-radius: 1rem;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 1rem;
}

.editor-list {
  display: grid;
  gap: 0.85rem;
}

.editor-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem;
  background: #f8fafc;
  display: grid;
  gap: 0.65rem;
}

.editor-item-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.editor-item-header strong {
  color: var(--navy);
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.editor-field {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.editor-field.full-width {
  grid-column: 1 / -1;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.7rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.delete-company-button {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
  cursor: pointer;
}

.scroll-top-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .map-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .company-list,
  .datetime-cards,
  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .split-heading {
    flex-direction: column;
  }

  .company-list,
  .datetime-cards,
  .notice-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 2.5rem;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .contact-details a,
  .contact-details span {
    border-radius: 1rem;
  }
}
