:root {
  --bg: #fbf7f0;
  --bg-soft: #f4ecde;
  --primary: #0a5da6;
  --secondary: #00a0e9;
  --highlight: #f39800;
  --ink: #3a2a1a;
  --ink-soft: #6b5a48;
  --line: #e6dcc8;
}

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

body {
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(243, 152, 0, 0.06) 0, transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(0, 160, 233, 0.06) 0, transparent 40%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.topbar .brand {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.topbar nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 22px;
  font-weight: 500;
  transition: color 0.2s;
}
.topbar nav a:hover { color: var(--highlight); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 32px 0 24px;
}
.hero img.logo {
  max-width: min(560px, 80%);
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero .tagline {
  margin-top: 6px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--primary);
  font-size: 18px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- Event Info ---------- */
.event-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 40px 28px 32px 32px;
  margin: 50px auto 0;
  max-width: 760px;
  box-shadow: 0 6px 0 rgba(10, 93, 166, 0.04);
  position: relative;
}
.event-card::before {
  content: "EVENT INFO";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--highlight);
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: 18px;
  padding: 2px 14px;
  border-radius: 99px;
  letter-spacing: 0.08em;
}
.event-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 14px;
  column-gap: 20px;
  align-items: start;
}
.event-grid dt {
  font-weight: 700;
  color: var(--primary);
  border-right: 2px dotted var(--line);
  padding-right: 16px;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.event-grid dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.event-grid dd .ph {
  background: var(--bg-soft);
  padding: 2px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
}
.event-grid dd strong { font-size: 20px; color: var(--ink); }

/* ---------- Section heads ---------- */
section.block { padding: 64px 0 12px; }
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head .kicker {
  font-family: "Caveat", cursive;
  font-size: 28px;
  color: var(--secondary);
  line-height: 1;
}
.section-head h2 {
  font-size: 28px;
  margin: 6px 0 0;
  color: var(--ink);
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  background: var(--highlight);
  border-radius: 99px;
  margin: 10px auto 0;
}

/* ---------- About ---------- */
.about-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}
.about-text p { margin: 0 0 12px; }

/* ---------- Category tabs ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 36px;
  flex-wrap: wrap;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
}
.tabs button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 10px 22px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tabs button .ja {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.05em;
}
.tabs button:hover { color: var(--primary); }
.tabs button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
}
.tabs button[aria-selected="true"] .ja { opacity: 0.85; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Vendor cards ---------- */
.vendor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 8px;
}
.vendor {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}
.vendor::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  border: 1.5px dashed transparent;
  pointer-events: none;
  transition: border-color 0.25s;
}
.vendor:hover::after { border-color: rgba(0, 160, 233, 0.35); }

.vendor .num {
  position: absolute;
  top: -14px;
  left: -10px;
  z-index: 1;
  background: var(--primary);
  color: #fff;
  font-family: "Caveat", cursive;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 22px;
  transform: rotate(-8deg);
  box-shadow: 0 3px 0 rgba(10, 93, 166, 0.2);
}

/* Single photo with count badge */
.photo {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(243, 152, 0, 0.08) 0 10px,
    transparent 10px 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  transition: transform 0.25s;
}
.photo:hover { transform: translateY(-2px); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo .count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(10, 93, 166, 0.88);
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px 5px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.photo .count svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none; stroke-width: 2;
}

.vendor-info h3 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.vendor-info .category {
  display: inline-block;
  background: rgba(0, 160, 233, 0.12);
  color: var(--secondary);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.vendor-info p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.vendor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px dotted var(--line);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
.vendor-meta span b { color: var(--ink); margin-right: 4px; }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.15s, background 0.2s;
}
.ig-link:hover { background: var(--highlight); transform: translateY(-2px); }
.ig-link svg { width: 16px; height: 16px; }

/* ---------- Venue ---------- */
.venue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.venue .map {
  background: #fffcf8;
  border-radius: 12px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  background-image:
    repeating-linear-gradient(0deg, rgba(10, 93, 166, 0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(10, 93, 166, 0.05) 0 1px, transparent 1px 32px);
}
.venue .map img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.venue h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 20px;
}
.venue p { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.venue .ph {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* ---------- Organizer / contact ---------- */
.organizer {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 36px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.organizer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.organizer-contact {
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.25);
}
.organizer::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: var(--highlight);
  border-radius: 50%;
  opacity: 0.15;
}
.organizer h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
}
.organizer .name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.organizer p { margin: 0 0 6px; font-size: 14px; line-height: 1.8; }
.organizer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--highlight);
}
.organizer .ph {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* ---------- Utility classes for inline styles ---------- */
.mt-14 { margin-top: 14px; }
.mt-10 { margin-top: 10px; }
.text-sm-soft { font-size: 12px; color: var(--ink-soft); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 8, 0.88);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox .lb-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox .lb-scroll {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.lightbox .lb-scroll::-webkit-scrollbar { width: 6px; }
.lightbox .lb-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 99px; }
.lightbox figure {
  margin: 0 0 14px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
}
.lightbox figure:last-child { margin-bottom: 0; }
.lightbox figure .ph-fill {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.05) 0 14px,
    transparent 14px 28px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.lightbox figure img { display: block; width: 100%; height: auto; }
.lightbox figcaption {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 10px 14px;
  font-family: ui-monospace, monospace;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lightbox .lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 14px;
}
.lightbox .lb-bar .title { font-weight: 700; }
.lightbox .lb-bar .count-text { color: rgba(255,255,255,0.6); font-size: 12px; }
.lightbox .lb-close {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--highlight);
  color: #fff;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.lightbox .lb-close:hover { background: #fff; color: var(--primary); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 48px 0 32px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
}
footer .wave {
  display: block;
  width: 120px;
  height: 16px;
  margin: 0 auto 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .topbar nav { display: none; }
  .event-grid {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .event-grid dt {
    border-right: none;
    border-bottom: 2px dotted var(--line);
    padding-right: 0;
    padding-bottom: 2px;
    padding-top: 12px;

  }
  .event-grid dt:first-child { padding-top: 0; }
  .event-grid dd { padding-bottom: 8px; }
  .vendor { grid-template-columns: 1fr; padding: 20px; }
  .photo { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .venue { grid-template-columns: 1fr; padding: 24px; }
  .organizer { padding: 24px; }
  .organizer-grid { grid-template-columns: 1fr; }
  .organizer-contact { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.25); }
  .section-head h2 { font-size: 22px; }
  .tabs button { padding: 9px 14px; font-size: 13px; }
}
