/* ===========================================
   KLIS-X MEETUP Vol.1 — Stylesheet
   Colors: --dark #002828 | --green #7dce72 | --mint #dfe8dd
   Fonts:  Outfit (English) + Noto Sans JP (Japanese)
   =========================================== */

/* ─────────────────────────────────────────
   Variables
───────────────────────────────────────── */
:root {
  --dark:   #002828;
  --green:  #7dce72;
  --mint:   #dfe8dd;
  --white:  #ffffff;
  --text:   #1c3030;
  --muted:  #5a7070;
  --border: #c8d9c6;
}

/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
}
a { text-decoration: none; color: inherit; }

/* ─────────────────────────────────────────
   Navigation
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 106; /* above drawer (105) so hamburger stays visible */
  /* Transparent over hero, turns dark on scroll via JS .scrolled class */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
nav.scrolled {
  background: rgba(0, 40, 40, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(125, 206, 114, 0.12);
}
.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 58px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 5rem;
}
nav a {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav a:hover        { color: var(--green); }
nav a:hover::after { transform: scaleX(1); }

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile drawer (slides from right) ── */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 260px;
  height: 100vh;
  background: var(--dark);
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(125, 206, 114, 0.1);
  transition: color 0.2s;
  position: relative;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--green); }

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
#hero {
  position: relative;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 800px;
  /* top padding accounts for fixed nav (58px) + breathing room */
  padding: 110px 1.5rem 110px;
}

/* X overlay — absolutely positioned, fixed size, clipped by #hero overflow:hidden.
   Fixed px width means it never scales — narrower viewport shows less of it. */
.hero-x-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1700px;
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  display: block;
}

/* V2 variant — left-align hero content */
.hero-content--left {
  text-align: left;
}
.hero-content--left .hero-brand-row {
  display: block;
  width: fit-content;
}
.hero-content--left .hero-title-img,
.hero-content--left .hero-date-img {
  margin-left: 0;
  margin-right: 0;
}
.hero-content--left .hero-btns {
  justify-content: flex-start;
}

/* V2 variant — anchor overlay to top-left, height fills hero */
.hero-overlay--topleft {
  top: 0;
  left: 0;
  transform: none;
  width: auto;
  height: 100%;
}

/* Content stack — centered above the sun wrapper, matches .container width */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 880px;
}

/* ── Title images ── */

/* Wrapper so vol1 badge can sit top-right of brand name */
.hero-brand-row {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
  /* #4 — padding-top = badge height (~30px) + 10px gap + top offset (10px) = 50px */
  padding-top: 50px;
}
/* 第1回 speech-bubble badge */
.hero-vol {
  position: absolute;
  /* #4 — top: 0 + 10px gap means badge sits 10px above the brand image */
  top: 10px;
  right: -6px;
  width: 64px;
  height: auto;
}
/* KYOTO KLIS-X MEETUP */
.hero-brand-img {
  display: block;
  width: min(540px, 90vw);
  height: auto;
}
/* 医療機器・デジタルヘルスの / 社会実装と壁の突破 */
.hero-title-img {
  display: block;
  width: min(540px, 90vw);
  height: auto;
  margin: 15px auto 35px;
}
/* 8.28 date block */
.hero-date-img {
  display: block;
  width: min(350px, 70vw);
  height: auto;
  margin: 0 auto;
}

/* ── Concept summary ── */
.hero-concept {
  font-size: clamp(0.9rem, 1.9vw, 1.05rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
  margin: 37px auto 40px;
}

/* ── CTA buttons ── */
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}
/* Hero and tickets buttons share the same .btn .btn-primary / .btn-outline classes — see Buttons section below */


/* ─────────────────────────────────────────
   Section Shared
───────────────────────────────────────── */
section { padding: 88px 1.5rem; }
.container { max-width: 880px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.65rem;
  text-align: center;
}
.section-title {
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1.6rem;
  text-align: center;
}
.section-title.on-dark { color: var(--white); }

/* ─────────────────────────────────────────
   About section
───────────────────────────────────────── */
#about { background: var(--mint); }

.concept-lead {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

/* H3 subsection titles */
.subsection-h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.75rem;
  margin-top: 3rem;
  text-align: center;
  letter-spacing: 0.03em;
}
.subsection-h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 15px auto 0;
}

/* 3 feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-bottom: 0;
}
.feature-card {
  background: transparent;
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.6rem;
  text-align: center;
}
.feature-icon {
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto 1.1rem;
}
.feature-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.feature-desc {
  font-size: 0.845rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Numbered audience list */
.audience-list {
  display: flex;
  flex-direction: column;
}
.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0, 40, 40, 0.1);
}
.audience-item:last-child { border-bottom: none; }
.audience-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  min-width: 3.25rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.audience-divider {
  width: 10px;
  min-height: 100%;
  background: var(--green);
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 0;
}
.audience-body { flex: 1; }
.audience-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.audience-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   Event Details section
───────────────────────────────────────── */
#details { background: var(--white); }

/* Pill-row layout */
.overview-list {
  margin-top: 50px;
  border-top: 1px solid rgba(0, 40, 40, 0.1);
}
.overview-row {
  display: flex;
  align-items: flex-start;
  gap: 2.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0, 40, 40, 0.1);
}
.overview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.38rem 1.15rem;
  border-radius: 50px;
  white-space: nowrap;
  min-width: 72px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.overview-content { flex: 1; }
.overview-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.65;
}
.overview-note {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.3rem;
}

/* ─────────────────────────────────────────
   Program timeline
───────────────────────────────────────── */
#program { background: var(--white); }

.timeline {
  position: relative;
  padding-left: 0.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 56px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--green) 0%, rgba(125, 206, 114, 0.15) 100%);
}
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  position: relative;
}
.tl-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  width: 44px;
  flex-shrink: 0;
  padding-top: 0.15rem;
  text-align: right;
}
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--green);
  flex-shrink: 0;
  margin-top: 6px;
}
.tl-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}
.tl-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.tl-item.highlight .tl-title { color: var(--dark); }
.tl-item.highlight .tl-dot {
  background: var(--dark);
  box-shadow: 0 0 0 1.5px var(--dark);
}

/* ─────────────────────────────────────────
   Tickets / CTA
───────────────────────────────────────── */
#tickets {
  background: var(--dark);
  text-align: center;
}
#tickets .section-eyebrow { color: var(--green); }

.tickets-lead {
  font-size: 0.975rem;
  color: var(--white);
  margin: 0 auto 2.75rem;
  line-height: 1.9;
}

/* Countdown */
.cd-until {
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}
.cd-block {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
}
.cd-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.1rem, 6.3vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.cd-kanji {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.65rem, 1.6vw, 0.95rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

/* Buttons — #3: match hero pill style */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 0.78rem 2.1rem;
  border-radius: 50px;
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--dark);
  border: 2px solid var(--green);
  text-decoration: none;
}
.btn-primary:hover {
  background: transparent;
  color: var(--green);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--dark);
}

/* ─────────────────────────────────────────
   Calendar Popover (Sharing City Forum style)
───────────────────────────────────────── */
.calendar-popover {
  position: absolute;
  z-index: 300;
  top: 0;
  left: 0;
  min-width: 220px;
  padding: 6px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 40, 40, 0.18),
              0 4px 12px rgba(0, 40, 40, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.calendar-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.calendar-popover-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  text-align: left;
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #002828;
  cursor: pointer;
  background: none;
  border: none;
  transition: background 0.15s ease;
}
.calendar-popover-option:hover,
.calendar-popover-option:focus-visible {
  background: #dfe8dd;
  outline: none;
}
.cal-option-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #002828;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
footer a {
  color: rgba(125, 206, 114, 0.55);
  transition: color 0.2s;
}
footer a:hover { color: var(--green); }

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
/* Hamburger breakpoint — anything smaller than laptop */
@media (max-width: 1023px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
}

/* V2 hero — revert to centered on mobile */
@media (max-width: 768px) {
  .hero-content--left {
    text-align: center;
  }
  .hero-content--left .hero-brand-row {
    display: inline-block;
    width: auto;
  }
  .hero-content--left .hero-title-img,
  .hero-content--left .hero-date-img {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content--left .hero-btns {
    justify-content: center;
  }
  .hero-overlay--topleft {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
  }
}

/* Small screens */
@media (max-width: 640px) {
  section { padding: 64px 1.25rem; }
  #hero { min-height: 600px; }
  .hero-concept { margin-top: 36px; margin-bottom: 28px; }
  .hero-btns { gap: 0.75rem; }
  .btn { padding: 0.7rem 1.6rem; font-size: 0.82rem; }
  .countdown { gap: 0.3rem; }
  .cd-number { min-width: 60px; font-size: 2.4rem; }
}
