/* ===== VARIABLES ===== */
:root {
  --red: #E53935;
  --blue: #1E88E5;
  --green: #43A047;
  --yellow: #FDD835;
  --orange: #FB8C00;
  --purple: #8E24AA;
  --pink: #EC407A;
  --black: #333333;
}

/* ===== UTILITY: BR ===== */
br.sp { display: none; }
@media (max-width: 768px) {
  br.pc { display: none; }
  br.sp { display: inline; }
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Maru Gothic', 'Zen Kaku Gothic New', sans-serif;
  color: #333;
  overflow-x: hidden;
  background: #fff;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 99999;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(.22,1,.36,1);
  overflow: visible;
}
header.scrolled {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.88);
  top: 10px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow), #8BC34A, var(--green), #00ACC1, var(--blue), #7E57C2, var(--purple), var(--pink), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  background-size: 300% auto;
  animation: logoShimmer 24s linear infinite;
}
@keyframes logoShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Nav Right (CTA + Hamburger) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav Links (dropdown) */
.nav-links {
  display: none;
}
.nav-links.active {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: calc(100% + 12px);
  left: 0; right: 0;
  width: 100%;
  background: #fff;
  padding: 28px;
  gap: 0;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 99999;
  animation: menuSlideDown 0.35s cubic-bezier(.22,1,.36,1);
}
.nav-links-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-links-col:not(:last-child) {
  border-right: 1px solid rgba(0,0,0,0.06);
  padding-right: 24px;
  margin-right: 24px;
}
.nav-links-col-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.nav-sns {
  display: flex;
  gap: 10px;
}
.nav-sns-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-sns-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-sns-icon[aria-label="X"] {
  background: #000;
  color: #fff;
}
.nav-sns-icon[aria-label="Instagram"] {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.nav-sns-icon[aria-label="LINE"] {
  background: #06C755;
  color: #fff;
}
.nav-sns-icon[aria-label="Threads"] {
  background: #000;
  color: #fff;
}
.nav-links-col-cta .btn-primary {
  padding: 16px 36px !important;
  font-size: 0.95rem !important;
  width: auto !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(135deg, var(--pink), var(--purple)) !important;
  border-radius: 60px !important;
  box-shadow: 0 4px 20px rgba(142, 36, 170, 0.3) !important;
}
/* Sub links (below events section) */
.lp-sub-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}
.lp-sub-link {
  flex: 1;
  max-width: 520px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  text-decoration: none;
  color: #444;
  transition: all 0.4s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.lp-sub-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s;
}
.lp-sub-link--business::before {
  background: linear-gradient(135deg, rgba(30,136,229,0.05), rgba(142,36,170,0.05));
}
.lp-sub-link--safe::before {
  background: linear-gradient(135deg, rgba(236,64,122,0.05), rgba(251,140,0,0.05));
}
.lp-sub-link:hover::before { opacity: 1; }
.lp-sub-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}

.lp-sub-link-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}
.lp-sub-link-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-sub-link--business .lp-sub-link-icon-wrap {
  background: linear-gradient(135deg, #e3f2fd, #ede7f6);
  color: var(--blue);
}
.lp-sub-link--safe .lp-sub-link-icon-wrap {
  background: linear-gradient(135deg, #fce4ec, #fff3e0);
  color: var(--pink);
}
.lp-sub-link-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 6px;
  position: relative;
}
.lp-sub-link--business .lp-sub-link-badge {
  background: #e3f2fd;
  color: var(--blue);
}
.lp-sub-link--safe .lp-sub-link-badge {
  background: #fce4ec;
  color: var(--pink);
}

.lp-sub-link h4 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
}
.lp-sub-link p {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.8;
  flex: 1;
  position: relative;
}

.lp-sub-link-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  position: relative;
}
.lp-sub-link-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #aaa;
  transition: color 0.3s;
}
.lp-sub-link:hover .lp-sub-link-label {
  color: var(--purple);
}
.lp-sub-link-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ccc;
  transition: all 0.3s;
}
.lp-sub-link:hover .lp-sub-link-arrow {
  background: var(--purple);
  color: #fff;
  transform: translateX(4px);
}
@media (max-width: 600px) {
  .lp-sub-links { flex-direction: column; align-items: center; }
  .lp-sub-link { min-width: 0; }
}

.nav-links-col > a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
  display: block;
  padding: 11px 16px;
  border-radius: 12px;
}
.nav-links-col > a:hover {
  color: var(--purple);
  background: rgba(142, 36, 170, 0.06);
}

.nav-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 36, 170, 0.35);
}

/* Hamburger button */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(0,0,0,0.04);
  border: none;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
  flex-direction: column;
  gap: 5px;
}
.hamburger:hover {
  background: rgba(142, 36, 170, 0.08);
  transform: scale(1.05);
}
.hamburger span {
  width: 18px; height: 2px;
  background: #555;
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
  display: block;
  border-radius: 2px;
}

/* ===== PAGE HERO (各ページ共通) ===== */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.5;
}

.page-hero .lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #666;
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== SECTION ===== */
.section {
  padding: 80px 24px;
}

.section-inner, .fade-in, .page-hero-inner, .page-hero h1, .page-hero .lead, .cta-banner h2, .cta-banner p, .cta-banner .btn-primary {
  position: relative;
  z-index: 3;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 1rem;
  margin-bottom: 56px;
}

/* ===== RAINBOW ===== */
.rainbow-text {
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rainbow-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink));
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 24px 64px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: none;
  border-radius: 60px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(142, 36, 170, 0.3);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(142, 36, 170, 0.5);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.footer-mobile-links { display: none; }

/* ===== FOOTER ===== */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  padding: 60px 24px 32px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
}

/* ===== FADE IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE: TABLET (768px) ===== */
@media (max-width: 768px) {
  /* Header */
  header {
    top: 0; left: 0; transform: none;
    width: 100%; max-width: none;
    border-radius: 0; border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.92);
  }
  header.scrolled { top: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
  nav { padding: 12px 16px; }
  .logo { font-size: 1rem; }
  .nav-cta { padding: 8px 18px; font-size: 0.85rem; }
  .hamburger { width: 38px; height: 38px; }
  .nav-links.active {
    top: calc(100% + 4px); left: 8px; right: 8px; width: auto;
    border-radius: 16px;
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }
  .nav-links-col > a {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
  .nav-links-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .nav-links-col-cta {
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 12px;
    margin-top: 8px;
    gap: 16px;
  }
  .nav-links-col-cta .btn-primary {
    font-size: 0.85rem !important;
    padding: 12px 28px !important;
  }

  /* Typography - unified */
  h1 { font-size: 1.5rem !important; }
  h2, .section-title { font-size: 1.25rem !important; }
  h3 { font-size: 1.05rem !important; }
  h4 { font-size: 0.9rem !important; }
  p, li { font-size: 0.9rem !important; }
  .lead, .section-subtitle { font-size: 0.9rem !important; }

  /* Page hero */
  .page-hero { padding: 90px 20px 32px; }
  .page-hero-inner { flex-direction: column; text-align: center; gap: 0; }
  .page-hero-images { flex: none; width: 100%; }
  .page-hero-images img { width: 80%; max-width: 360px; }

  /* Section */
  .section { padding: 36px 16px; }

  /* Buttons */
  .btn-primary:not(.nav-links-col-cta .btn-primary) { padding: 14px 32px; font-size: 1rem !important; }

  /* CTA Banner */
  .cta-banner { padding: 36px 16px; }

  /* Section subtitle */
  .section-subtitle { margin-bottom: 32px !important; }

  /* Footer */
  footer { padding: 36px 16px 24px; }
  .footer-bottom { margin: 24px auto 0; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { display: none; }
  footer .footer-mobile-links {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px 16px; margin-top: 16px;
  }
  footer .footer-mobile-links a {
    font-size: 0.8rem; color: rgba(255,255,255,0.5);
    text-decoration: none; padding: 6px 0;
  }

  /* Decoration */
  .section-deco-char { width: 100px; height: 100px; opacity: 0.6; }
}

/* ===== RESPONSIVE: SMARTPHONE (480px) ===== */
@media (max-width: 480px) {
  /* Header */
  nav { padding: 10px 12px; }
  .logo { font-size: 0.9rem; }
  .nav-cta { padding: 7px 14px; font-size: 0.75rem; }
  .hamburger { width: 34px; height: 34px; }
  .nav-links.active { padding: 12px; }
  .nav-links-col > a { padding: 7px 8px; font-size: 0.72rem; }
  .nav-links-col-cta .btn-primary {
    font-size: 0.8rem !important;
    padding: 10px 24px !important;
  }

  /* Typography - unified */
  h1 { font-size: 1.25rem !important; }
  h2, .section-title { font-size: 1.1rem !important; }
  h3 { font-size: 0.95rem !important; }
  h4 { font-size: 0.85rem !important; }
  p, li { font-size: 0.85rem !important; }
  .lead, .section-subtitle { font-size: 0.8rem !important; }

  /* Page hero */
  .page-hero { padding: 70px 16px 24px; }

  /* Section */
  .section { padding: 28px 12px; }

  /* CTA Banner */
  .cta-banner { padding: 28px 12px; }

  /* Section subtitle */
  .section-subtitle { margin-bottom: 24px !important; }

  /* Footer */
  .footer-bottom { margin: 20px auto 0; }

  /* Buttons */
  .btn-primary:not(.nav-links-col-cta .btn-primary) { padding: 14px 28px; font-size: 0.95rem !important; width: 100%; text-align: center; }
  .btn-secondary { padding: 12px 24px; font-size: 0.85rem; }

  /* Footer */
  footer { padding: 32px 16px 20px; }
  .footer-brand .logo { font-size: 1rem; }
  .footer-brand p { font-size: 0.8rem !important; }
  .footer-bottom { font-size: 0.7rem; }

  /* Decoration: hide */
  .section-deco-char { display: none; }
}
