:root {
  --ink: #f7f8ff;
  --muted: #aab5d1;
  --panel: rgba(11, 21, 54, .88);
  --line: rgba(152, 174, 225, .2);
  --pink: #ff5d8f;
  --cyan: #37d7e7;
  --page-bg: #02071d;
  --header-bg: rgba(1, 5, 20, .88);
  color-scheme: dark;
}

:root[data-theme="sunset"] {
  --ink: #fff8f2;
  --muted: #d7b4b5;
  --panel: rgba(52, 14, 39, .9);
  --line: rgba(255, 174, 142, .26);
  --pink: #ff7895;
  --cyan: #ffb36d;
  --page-bg: #210817;
  --header-bg: rgba(31, 5, 22, .91);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page-bg) url('images/backgrounds/bg-comedians-main-stage.png') center top / cover fixed no-repeat;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 5, 22, .26), var(--page-bg) 78%);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  padding: 10px max(20px, 4.4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 178px; height: 38px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); font-size: 12px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cyan); }
.theme-toggle { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.theme-toggle img { width: 34px; height: 34px; object-fit: contain; transition: transform .25s ease; }
.theme-toggle:hover img { transform: rotate(18deg) scale(1.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
:root[data-theme="sunset"] .theme-toggle img { filter: hue-rotate(120deg) saturate(1.2); }
.page-hero { padding: 76px 24px 48px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.page-hero h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); letter-spacing: .04em; }
.lead { max-width: 700px; margin: 20px auto 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.content { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 80px; }
.section-card {
  margin: 0 0 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}
.section-card h2 { margin: 0 0 16px; font-size: 21px; }
.section-card h2::before { content: ""; display: inline-block; width: 4px; height: 1em; margin-right: 12px; vertical-align: -.1em; border-radius: 4px; background: linear-gradient(var(--pink), var(--cyan)); }
.section-card h3 { margin: 28px 0 8px; font-size: 16px; }
.section-card p, .section-card li { color: var(--muted); font-size: 14px; line-height: 1.9; }
.section-card p:last-child { margin-bottom: 0; }
.section-card ol, .section-card ul { margin: 0; padding-left: 1.4em; }
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 20px; }
.step { position: relative; padding: 18px 18px 18px 58px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 17px; top: 17px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--pink), var(--cyan)); font-weight: 900; }
.step strong { display: block; margin-bottom: 4px; }
.step p { margin: 0; }
.note { padding: 16px 18px; border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; background: rgba(55,215,231,.07); }
.priority-request {
  border-color: rgba(255, 93, 143, .48);
  background: linear-gradient(135deg, rgba(255, 93, 143, .13), rgba(55, 215, 231, .07) 58%), var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2), 0 0 30px rgba(255, 93, 143, .08);
}
.priority-request-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.priority-request-heading h2 { margin: 0; }
.priority-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #a84fe5);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}
.priority-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 16px !important;
  padding: 0 !important;
  list-style: none;
}
.priority-request-grid li {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(152, 174, 225, .2);
  border-radius: 11px;
  background: rgba(3, 10, 35, .42);
}
.priority-request-grid li:last-child { grid-column: 1 / -1; }
.priority-request-grid strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; }
.priority-request-grid span { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; }
.priority-caption { margin-top: 0; font-size: 12px !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-fieldset { border: 0; padding: 0; margin: 0; }
.form-field label, .field-label { color: var(--ink); font-size: 13px; font-weight: 700; }
.required { margin-left: 6px; color: var(--pink); font-size: 10px; }
.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; color: var(--ink); background: rgba(3, 10, 35, .72);
  border: 1px solid var(--line); border-radius: 9px; font: inherit;
}
.form-field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.form-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.radio-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.radio-option { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; cursor: pointer; overflow-wrap: normal; word-break: keep-all; }
.radio-option input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--pink); }
.consent { display: flex; align-items: flex-start; justify-content: flex-start; gap: 11px; width: 100%; color: var(--muted); font-size: 12px; line-height: 1.7; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pink); }
.consent span { min-width: 0; overflow-wrap: anywhere; }
.submit-button { padding: 13px 28px; border: 0; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--pink), #9c4de7); font-weight: 800; cursor: pointer; box-shadow: 0 10px 28px rgba(255, 79, 134, .22); }
.submit-button:hover { transform: translateY(-1px); }
.form-message { margin-bottom: 20px; padding: 16px 18px; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.form-message.success { color: #caffdf; background: rgba(51, 188, 111, .15); border: 1px solid rgba(87, 231, 163, .4); }
.form-message.error { color: #ffd8df; background: rgba(210, 45, 82, .15); border: 1px solid rgba(255, 93, 143, .4); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.admin-record details { margin: 14px 0; color: var(--muted); }
.admin-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.status-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.status-summary span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 11px; }
.status-summary strong { color: var(--ink); }
.admin-filter { display: grid; grid-template-columns: minmax(180px, 1fr) 180px auto; gap: 10px; margin-bottom: 8px; }
.admin-filter input, .admin-filter select { min-width: 0; padding: 10px 12px; color: var(--ink); background: rgba(3,10,35,.72); border: 1px solid var(--line); border-radius: 8px; }
.page-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; font-size: 12px; }
.page-links a:hover { border-color: var(--cyan); color: var(--cyan); }
.site-footer { padding: 28px 20px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; font-size: 11px; }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-nav { width: 100%; gap: 14px; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .theme-toggle { margin-left: auto; flex: 0 0 34px; }
  .page-hero { padding-top: 52px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .radio-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priority-request-heading { align-items: flex-start; flex-direction: column; }
  .priority-request-grid { grid-template-columns: 1fr; }
  .priority-request-grid li:last-child { grid-column: auto; }
  .admin-filter { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .radio-group { grid-template-columns: 1fr; }
}
