@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

:root {
  --color-primary: #ff2d6b;
  --color-primary-dark: #d81b5c;
  --color-secondary: #ffd23f;
  --color-accent: #4cc9f0;
  --color-dark: #241b2f;
  --color-bg: #fff8f9;
  --color-card: #ffffff;
  --color-text: #3a2e39;
  --color-text-soft: #7a6d78;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 30px rgba(255, 45, 107, 0.12);
  --shadow-pop: 0 6px 0 rgba(0, 0, 0, 0.15);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--color-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: 0.5px;
}
.logo .logo-badge {
  background: var(--color-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 13px;
  transform: rotate(-4deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-dark);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: #ffe3ec; }
.main-nav a.active { background: var(--color-dark); color: #fff; }

.nav-cta {
  background: var(--color-secondary) !important;
  color: var(--color-dark) !important;
  margin-left: 8px;
  box-shadow: var(--shadow-pop);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 6px;
    border-bottom: 3px solid var(--color-dark);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  border: 3px solid var(--color-dark);
  box-shadow: var(--shadow-pop);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.btn:active { transform: translateY(6px); box-shadow: none; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-secondary); color: var(--color-dark); }
.btn-outline { background: #fff; color: var(--color-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: var(--shadow-pop); }

/* ---------- Flyer banner ---------- */
.flyer-banner {
  width: 100%;
  line-height: 0;
  border-bottom: 3px solid var(--color-dark);
  background: var(--color-dark);
}
.flyer-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff0f4 0%, var(--color-bg) 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--color-dark);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.35;
  color: var(--color-dark);
}
.hero h1 .accent { color: var(--color-primary); }
.hero p.lead {
  font-size: 16px;
  color: var(--color-text-soft);
  margin: 20px 0 30px;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero-blob {
  aspect-ratio: 1/1;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 0 rgba(0,0,0,.1);
  transform: rotate(-3deg);
}
.hero-blob:nth-child(2) { transform: rotate(4deg) translateY(20px); }
.hero-blob:nth-child(3) { transform: rotate(5deg) translateY(-16px); }
.hero-blob:nth-child(4) { transform: rotate(-4deg); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Section ---------- */
.section { padding: 70px 0; }
.section-tight { padding: 40px 0; }
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-title h2 { font-size: 30px; color: var(--color-dark); }
.section-title .en {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.section-alt { background: #fff; border-top: 3px dashed #ffd6e2; border-bottom: 3px dashed #ffd6e2; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 3px solid var(--color-dark);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .15s ease;
}

.comedian-card { cursor: pointer; }
.comedian-card:hover { transform: translateY(-6px); }
.comedian-avatar {
  aspect-ratio: 41/28;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  position: relative;
}
.avatar-illustration {
  width: 100%;
  height: 100%;
}
.comedian-avatar img,
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comedian-avatar .years-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.comedian-body { padding: 16px 18px 20px; }
.comedian-body h3 { font-size: 19px; margin-bottom: 4px; }
.comedian-type { font-size: 12px; color: var(--color-text-soft); font-weight: 700; margin-bottom: 8px; }
.comedian-catch { font-size: 13.5px; color: var(--color-text-soft); }
.tag-row { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  font-weight: 700;
  background: #ffe3ec;
  color: var(--color-primary-dark);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Info / news cards ---------- */
.info-card {
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 3px solid var(--color-dark);
}
.info-card h4 { font-size: 16px; margin-bottom: 6px; }
.info-card p { margin: 0; font-size: 13.5px; color: var(--color-text-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h3 { font-size: 26px; margin-bottom: 8px; }
.cta-banner p { color: #d9cfe0; margin: 0; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #efe6f2;
  padding: 50px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-grid h5 { font-size: 13px; letter-spacing: 1px; color: #ffb4c9; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: 13.5px; }
.footer-grid a:hover { color: var(--color-secondary); }
.footer-sns { display: flex; gap: 10px; margin-top: 14px; }
.footer-sns a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.footer-bottom {
  padding-top: 20px;
  font-size: 12px;
  color: #b8adc2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page header (sub pages) ---------- */
.page-header {
  padding: 46px 0 30px;
  background: linear-gradient(180deg, #fff0f4 0%, var(--color-bg) 100%);
  border-bottom: 3px dashed #ffd6e2;
}
.page-header .en { color: var(--color-primary); font-weight: 700; letter-spacing: 3px; font-size: 13px; }
.page-header h1 { font-size: 34px; color: var(--color-dark); margin-top: 6px; }
.page-header p { color: var(--color-text-soft); margin-top: 10px; max-width: 60ch; }
.breadcrumb { font-size: 12px; color: var(--color-text-soft); margin-bottom: 10px; }
.breadcrumb a { color: var(--color-primary-dark); font-weight: 700; }

/* ---------- Filters (schedule) ---------- */
.date-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 24px;
}
.date-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 14px;
  border: 3px solid var(--color-dark);
  background: #fff;
  font-weight: 800;
  font-size: 13.5px;
  text-align: center;
}
.date-tab small { display: block; font-weight: 500; font-size: 11px; color: var(--color-text-soft); }
.date-tab.active { background: var(--color-primary); color: #fff; }
.date-tab.active small { color: #ffe3ec; }

.show-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.show-time { text-align: center; }
.show-time .date { font-size: 13px; font-weight: 700; color: var(--color-primary-dark); }
.show-time .clock { font-size: 26px; font-weight: 900; color: var(--color-dark); }
.show-info h4 { font-size: 17px; margin-bottom: 8px; }
.lineup-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.lineup-chip {
  font-size: 12px;
  background: #f5eef7;
  border: 1px solid #e6d9ec;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.show-status { text-align: right; }
.seats-left { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; color: var(--color-primary-dark); }
.seats-left.few { color: #d81b5c; }

@media (max-width: 700px) {
  .show-card { grid-template-columns: 1fr; text-align: left; }
  .show-status { text-align: left; }
}

/* ---------- Ticket page ---------- */
.ticket-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .ticket-layout { grid-template-columns: 1fr; }
}
.form-card { padding: 28px; margin-bottom: 20px; }
.form-card h3 { font-size: 18px; margin-bottom: 18px; }
.field-label { font-weight: 800; font-size: 13.5px; margin-bottom: 10px; display: block; }

.select-show {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--color-dark);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  background: #fff;
}

.seat-options { display: grid; gap: 12px; }
.seat-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 3px solid #e6d9ec;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.seat-option:has(input:checked) {
  border-color: var(--color-primary);
  background: #fff0f4;
}
.seat-option input { accent-color: var(--color-primary); width: 18px; height: 18px; }
.seat-option .seat-name { font-weight: 800; font-size: 14.5px; }
.seat-option .seat-desc { font-size: 12px; color: var(--color-text-soft); }
.seat-option .seat-price { margin-left: auto; font-weight: 900; color: var(--color-primary-dark); font-size: 16px; }

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 3px solid var(--color-dark);
  border-radius: 999px;
  padding: 6px;
}
.qty-control button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  font-weight: 900;
  font-size: 18px;
}
.qty-control span { font-weight: 900; font-size: 18px; min-width: 22px; text-align: center; }

.summary-card { padding: 26px; position: sticky; top: 96px; }
.summary-card h3 { font-size: 17px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--color-text-soft); }
.summary-row strong { color: var(--color-text); }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px dashed #e6d9ec; margin-top: 12px; padding-top: 14px;
  font-weight: 900;
}
.summary-total .amount { font-size: 26px; color: var(--color-primary); }
.demo-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--color-text-soft);
  background: #fff8e6;
  border: 1px solid #ffe6a3;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

/* confirm modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(36, 27, 47, 0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-dark);
  max-width: 460px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: #f5eef7; border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 16px; font-weight: 900;
}
.modal-box h3 { font-size: 22px; margin-bottom: 6px; }
.success-icon { font-size: 46px; margin-bottom: 6px; }

/* ---------- Comedian detail modal ---------- */
#comedianModal .modal-box { max-width: 520px; padding: 0; }
.detail-hero {
  aspect-ratio: 41/28;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 42px; font-weight: 900;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.detail-body { padding: 26px; }
.detail-body .comedian-type { margin-bottom: 10px; }
.detail-body h3 { font-size: 24px; margin-bottom: 6px; }
.detail-catch { color: var(--color-primary-dark); font-weight: 700; margin-bottom: 14px; }
.detail-bio { font-size: 14px; color: var(--color-text-soft); }

/* ---------- Access page ---------- */
.map-visual {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-dark);
  background:
    repeating-linear-gradient(0deg, #eef0ff 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, #eef0ff 0 2px, transparent 2px 34px),
    #f7f8ff;
  position: relative;
  overflow: hidden;
}
.map-embed { background: #eef0ff; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 12px; }
.map-pin {
  position: absolute; top: 45%; left: 52%;
  transform: translate(-50%, -100%);
  text-align: center;
}
.map-pin .pin-drop {
  width: 42px; height: 42px;
  background: var(--color-primary);
  border: 3px solid var(--color-dark);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.map-pin .pin-drop span { transform: rotate(45deg); font-size: 18px; }
.map-pin .pin-label {
  margin-top: 8px;
  background: #fff;
  border: 2px solid var(--color-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.map-road {
  position: absolute; background: #dfe3ff;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid #eee0e8;
  font-size: 14px;
  vertical-align: top;
}
.info-table th { width: 130px; color: var(--color-primary-dark); font-weight: 800; }
.rule-list li { padding: 10px 0 10px 28px; position: relative; font-size: 14px; border-bottom: 1px dashed #eee0e8; }
.rule-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: 900; }
