:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #eeeeee;
  --text: #050505;
  --muted: #666666;
  --line: #d8d8d8;
  --main: #050505;
  --danger: #b00020;
  --ok: #087a3d;
  --radius: 0px;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Noto Sans JP",
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 75%);
  z-index: -1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--main);
  border-radius: 0;
  padding: 13px 18px;
  background: var(--main);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .04em;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--main);
}

button.ghost:hover {
  background: var(--main);
  color: #fff;
}

a {
  color: var(--text);
}

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  border-bottom: 2px solid var(--main);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 56px);
  letter-spacing: .02em;
  line-height: .95;
  font-weight: 950;
}

.eyebrow {
  margin: 0 0 7px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
  font-weight: 950;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions a {
  text-decoration: none;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 74px;
}

.hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: center;
  padding: clamp(28px, 7vw, 82px) clamp(18px, 5vw, 64px);
  border: 2px solid var(--main);
  background:
    linear-gradient(135deg, rgba(0,0,0,.04) 0 25%, transparent 25% 50%, rgba(0,0,0,.035) 50% 75%, transparent 75%),
    #fff;
  background-size: 28px 28px;
  margin-bottom: 22px;
}

.hero::after {
  content: "RIDDLE STORY";
  position: absolute;
  right: clamp(14px, 4vw, 44px);
  bottom: clamp(10px, 3vw, 28px);
  font-size: clamp(34px, 9vw, 112px);
  font-weight: 950;
  line-height: .8;
  letter-spacing: -.07em;
  color: rgba(0,0,0,.055);
  pointer-events: none;
}

.hero h2 {
  margin: 0;
  font-size: clamp(42px, 10vw, 112px);
  line-height: .85;
  letter-spacing: -.075em;
  font-weight: 950;
}

.hero p {
  max-width: 760px;
  line-height: 1.9;
  font-weight: 650;
}

.site-nav,
.tabs,
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.site-nav a,
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--main);
  background: #fff;
  color: var(--main);
  padding: 12px 14px;
  font-weight: 950;
  letter-spacing: .06em;
}

.site-nav a::after,
.tab::after {
  content: "〉";
  font-weight: 950;
}

.site-nav a:hover,
.tab.active {
  background: var(--main);
  color: #fff;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--main);
  border-radius: 0;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: none;
}

.card h2,
.card h3,
section > h2 {
  margin-top: 0;
  font-weight: 950;
  letter-spacing: -.03em;
}

section > h2 {
  font-size: clamp(28px, 5vw, 54px);
  border-bottom: 2px solid var(--main);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--main);
  background: #fff;
  border-radius: 0;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0,0,0,.12);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.check input {
  width: auto;
}

.terms-box {
  border: 1px solid var(--main);
  padding: 12px 14px;
  margin: 14px 0;
  background: var(--surface-2);
}

.terms-box summary {
  cursor: pointer;
  font-weight: 950;
}

.terms-box p {
  line-height: 1.75;
}

.member-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.point-box {
  min-width: 170px;
  padding: 18px;
  background: #111;
  color: #fff;
  text-align: center;
  border: 1px solid #111;
}

.point-box span {
  display: block;
  font-size: 12px;
  opacity: .75;
  letter-spacing: .08em;
}

.point-box strong {
  display: block;
  font-size: 46px;
  line-height: .95;
}


.event-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--main);
  background: #f0f0f0;
}

#eventsList {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.event-card {
  display: grid;
  gap: 12px;
  position: relative;
}

.event-card h3 {
  font-size: 24px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  background: #fff;
  border: 1px solid var(--main);
}

.badge.free {
  background: #fff;
  color: var(--text);
}

.badge.paid {
  background: #111;
  color: #fff;
  border-color: #111;
}

.muted {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  border: 1px solid var(--main);
  padding: 13px;
  background: #fff;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #111;
  color: #fff;
  padding: 8px 10px;
  word-break: break-all;
  display: inline-block;
}

.game-link {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--main);
  background: var(--main);
  color: #fff;
  font-weight: 950;
  letter-spacing: .05em;
}

.game-link::after {
  content: " 〉";
}

.game-link:hover {
  background: #fff;
  color: var(--main);
}

.ticket-hero {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-width: 2px;
  margin-bottom: 18px;
}

.main-visual {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-right: 2px solid var(--main);
  background: #f0f0f0;
}

.ticket-title-area {
  padding: clamp(22px, 5vw, 56px);
  display: grid;
  align-content: center;
}

.ticket-title-area h2 {
  margin: 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: .9;
  letter-spacing: -.07em;
}

.text-block {
  line-height: 1.95;
}

#confirmBox,
#resultBox {
  border-width: 2px;
}

.qr-reader {
  overflow: hidden;
  border: 1px solid var(--main);
  background: #fff;
  padding: 10px;
  margin: 14px 0;
}

.message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(440px, calc(100vw - 36px));
  padding: 16px 18px;
  background: #111;
  color: #fff;
  box-shadow: 8px 8px 0 rgba(0,0,0,.16);
  z-index: 10;
}

.message.error {
  background: var(--danger);
}

.message.ok {
  background: var(--ok);
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .grid.two,
  .grid.three,
  .ticket-hero {
    grid-template-columns: 1fr;
  }

  .main-visual {
    width: 100%;
    height: auto;
    min-height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-right: none;
    border-bottom: 2px solid var(--main);
  }

  .event-thumb {
    max-height: none;
    aspect-ratio: 3 / 4;
  }

  .site-header,
  .member-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .header-actions,
  .header-actions a,
  .header-actions button {
    width: 100%;
  }

  .header-actions a {
    display: grid;
  }

  .point-box {
    width: 100%;
  }

  .hero {
    min-height: 290px;
  }
}


.copy-url-btn {
  margin-top: 8px;
  margin-left: 6px;
}

@media (max-width: 820px) {
  .copy-url-btn {
    margin-left: 0;
    width: 100%;
  }

  .game-link {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   mobile layout fix
   - スマホで左に細く寄る問題を修正
   - 公演画像が大きくなりすぎる問題を修正
========================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.site-header,
main {
  width: 100%;
}

.event-card {
  min-width: 0;
  overflow: hidden;
}

.event-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #111;
  border: 1px solid var(--main);
}

.main-visual {
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #111;
}

.code {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .site-header,
  main {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .site-header {
    display: block !important;
  }

  .site-header h1 {
    font-size: 28px !important;
    line-height: 1.05 !important;
  }

  .header-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-top: 12px;
  }

  .header-actions a,
  .header-actions button {
    width: 100% !important;
  }

  .hero {
    width: 100% !important;
    min-height: 0 !important;
    padding: 22px 14px !important;
    margin-top: 14px;
  }

  .hero h2 {
    font-size: clamp(38px, 15vw, 62px) !important;
    line-height: .9 !important;
    word-break: keep-all;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.75;
  }

  .site-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a,
  .tab {
    width: 100%;
    justify-content: space-between;
    padding: 11px 10px;
    font-size: 13px;
  }

  #eventsList {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .event-thumb {
    max-height: 360px !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
  }

  .main-visual {
    max-height: 430px !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
  }

  .card {
    width: 100%;
    min-width: 0;
    padding: 16px !important;
  }

  .grid,
  .grid.two,
  .grid.three {
    width: 100%;
    grid-template-columns: 1fr !important;
  }

  .copy-url-btn {
    margin-left: 0;
    width: 100%;
  }

  .game-link {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   強制スマホ対応修正
   iPhone Safariで横幅判定が効かない時用
========================= */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

body {
  -webkit-text-size-adjust: 100%;
}

.site-header,
main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

img,
video,
canvas,
svg {
  max-width: 100% !important;
}

#eventsList {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.event-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.event-thumb {
  display: block !important;
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 300px !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #111 !important;
  border: 1px solid #050505 !important;
}

.event-info {
  min-width: 0;
}

.code {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media (max-width: 1200px) {
  .site-header,
  main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .site-header {
    display: block !important;
  }

  .site-header h1 {
    font-size: 28px !important;
    line-height: 1.05 !important;
  }

  .header-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .header-actions a,
  .header-actions button {
    width: 100% !important;
  }

  .hero {
    width: 100% !important;
    min-height: 0 !important;
    padding: 20px 14px !important;
    margin-top: 14px !important;
  }

  .hero h2 {
    font-size: clamp(38px, 14vw, 64px) !important;
    line-height: .9 !important;
  }

  .hero p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .site-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .site-nav a,
  .tab {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 11px 10px !important;
    font-size: 13px !important;
  }

  .grid,
  .grid.two,
  .grid.three {
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .card {
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px !important;
  }

  .event-card {
    grid-template-columns: 120px 1fr !important;
    gap: 12px !important;
  }

  .event-thumb {
    max-width: 120px !important;
    max-height: 170px !important;
  }

  .event-card h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 8px 0 !important;
  }

  .event-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .game-link {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 13px !important;
  }

  .main-visual {
    max-height: 430px !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #111 !important;
  }
}

@media (max-width: 430px) {
  .event-card {
    grid-template-columns: 100px 1fr !important;
    gap: 10px !important;
  }

  .event-thumb {
    max-width: 100px !important;
    max-height: 150px !important;
  }

  .event-card h3 {
    font-size: 16px !important;
  }

  .badge {
    font-size: 10px !important;
    padding: 5px 7px !important;
  }
}

/* =========================
   公演一覧の画像を非表示
========================= */

#eventsList .event-thumb {
  display: none !important;
}

#eventsList .event-card {
  display: block !important;
  grid-template-columns: 1fr !important;
}

#eventsList .event-info {
  width: 100% !important;
}

/* =========================
   ゲームURLをゲームごとに整理表示
========================= */

.ticket-url-list {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ticket-url-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--main);
  padding-top: 12px;
}

.ticket-number {
  font-weight: 950;
  font-size: 18px;
}

.ticket-url-body {
  min-width: 0;
}

.ticket-url-body .game-link {
  margin-right: 8px;
}

@media (max-width: 600px) {
  .ticket-url-body .game-link,
  .ticket-url-body .copy-url-btn {
    width: 100%;
    margin: 6px 0 0;
    justify-content: center;
  }
}

/* =========================
   公演一覧：画像表示を復活
========================= */

#eventsList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
}

#eventsList .event-card {
  display: grid !important;
  grid-template-columns: 130px 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
  padding: 14px !important;
}

#eventsList .event-thumb-wrap {
  width: 100% !important;
  min-width: 0 !important;
}

#eventsList .event-thumb {
  display: block !important;
  width: 100% !important;
  height: 180px !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #111 !important;
  border: 1px solid var(--main) !important;
}

#eventsList .event-thumb.no-thumb {
  display: grid !important;
  place-items: center !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #fff !important;
}

#eventsList .event-info {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#eventsList .event-info h3 {
  margin: 10px 0 8px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
}

#eventsList .event-info p {
  margin-bottom: 12px !important;
  line-height: 1.65 !important;
}

#eventsList .event-info .game-link {
  margin-top: auto !important;
}

@media (max-width: 600px) {
  #eventsList {
    grid-template-columns: 1fr !important;
  }

  #eventsList .event-card {
    grid-template-columns: 105px 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  #eventsList .event-thumb {
    height: 150px !important;
  }

  #eventsList .event-info h3 {
    font-size: 17px !important;
  }

  #eventsList .event-info p {
    font-size: 13px !important;
  }

  #eventsList .event-info .game-link {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =========================
   数字ボタン式ページ切り替え
   画像のような四角ボタン
========================= */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ticket-page-list,
.stamp-page-list {
  display: grid;
  gap: 12px;
}

.ticket-page-item,
.stamp-page-item {
  border-top: 1px solid var(--main);
  padding-top: 12px;
}

.page-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--main);
}

.page-btn {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 3px solid #050505;
  background: #fff;
  color: #050505;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 9px 9px 0 #050505;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}

.page-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 5px 5px 0 #050505;
}

.page-btn.active {
  background: #050505;
  color: #fff;
  transform: translate(9px, 9px);
  box-shadow: none;
}

@media (max-width: 600px) {
  .page-head {
    display: block;
  }

  .ticket-page-item .button-row {
    display: grid;
    gap: 8px;
  }

  .ticket-page-item .game-link,
  .ticket-page-item .copy-url-btn {
    width: 100%;
    justify-content: center;
  }

  .page-buttons {
    gap: 12px;
  }

  .page-btn {
    width: 62px;
    height: 62px;
    font-size: 26px;
    box-shadow: 7px 7px 0 #050505;
  }

  .page-btn.active {
    transform: translate(7px, 7px);
  }
}

/* =========================
   公演ごとのチケットページ
   最終レイアウト修正版
   - タイトルを自然に改行
   - ストーリー/注意事項の二重ボックス削除
========================= */

#eventSection.event-page {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 上段：画像ボックス + タイトルボックス */
.event-top-layout {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin-bottom: 16px !important;
}

.event-visual-box,
.event-summary-box,
.event-info-box,
.ticket-box {
  border: 2px solid #050505 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* 画像だけの黒ボックス */
.event-visual-box {
  background: #050505 !important;
  padding: 20px !important;
  display: grid !important;
  place-items: center !important;
  min-height: 360px !important;
}

#mainVisual.main-visual {
  display: block !important;
  width: 100% !important;
  max-width: 270px !important;
  height: auto !important;
  max-height: 340px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: static !important;
}

/* 右のタイトルボックス */
.event-summary-box {
  padding: 32px 36px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#eventTypeText.event-type-label {
  display: inline-flex !important;
  width: fit-content !important;
  border: 2px solid #050505 !important;
  background: #fff !important;
  color: #050505 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  box-shadow: 4px 4px 0 #050505 !important;
  margin: 0 0 18px !important;
}

/* タイトル：横に伸びすぎないようにする */
#eventTitle {
  display: block !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 0 18px !important;
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.05em !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-break: strict !important;
}

/* 説明文 */
#eventDescription {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
  color: #666 !important;
  border-left: 6px solid #050505 !important;
  padding-left: 16px !important;
}

/* 下段ボックス */
.event-info-box,
.ticket-box {
  padding: 24px !important;
  margin-bottom: 16px !important;
}

.event-info-box h2,
.ticket-box h2 {
  margin: 0 0 14px !important;
  font-size: clamp(26px, 3vw, 42px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  border-bottom: 2px solid #050505 !important;
  padding-bottom: 10px !important;
}

/* ここが重要：ストーリー/注意事項の中の追加ボックスを消す */
#eventStory,
#eventNotes {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#eventStory p,
#eventNotes p {
  margin: 0 0 10px !important;
  line-height: 1.9 !important;
}

#eventStory p:last-child,
#eventNotes p:last-child {
  margin-bottom: 0 !important;
}

/* 確認画面だけは中身を見やすく */
#confirmText {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* チケット欄 */
#freeArea,
#paidArea {
  margin-top: 10px !important;
}

#ticketCount,
#paidCode {
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 8px !important;
  margin-bottom: 14px !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
  border: 2px solid #050505 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.button-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

/* hiddenを最優先 */
.hidden {
  display: none !important;
}

#authNotice.hidden,
#notFound.hidden,
#mainVisual.hidden,
#freeArea.hidden,
#paidArea.hidden,
#confirmArea.hidden,
#resultArea.hidden {
  display: none !important;
}

/* スマホ */
@media (max-width: 800px) {
  .event-top-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .event-visual-box {
    min-height: 0 !important;
    padding: 16px !important;
  }

  #mainVisual.main-visual {
    max-width: 100% !important;
    max-height: 520px !important;
  }

  .event-summary-box,
  .event-info-box,
  .ticket-box {
    padding: 18px !important;
  }

  #eventTitle {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }

  .button-row {
    flex-direction: column !important;
  }

  .button-row button,
  .button-row .game-link {
    width: 100% !important;
    justify-content: center !important;
  }
}

.member-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.member-status-grid .card {
  height: 100%;
}

#emailVerifyCard,
#campaignMailCard {
  max-width: none;
}

#emailVerifyCode {
  max-width: 100%;
}

#campaignMailCard .check {
  align-items: flex-start;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .member-status-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row button {
    width: 100%;
  }
}

/* =========================
   チェックボックス改善
========================= */

.check {
  display: grid !important;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.7;
  margin: 14px 0;
  user-select: none;
}

.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin: 4px 0 0;
  border: 2px solid #050505;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.check input[type="checkbox"]::before {
  content: "";
  width: 14px;
  height: 14px;
  transform: scale(0);
  transition: transform 0.12s ease;
  background: #fff;
  clip-path: polygon(14% 44%, 0 62%, 42% 100%, 100% 18%, 82% 0, 38% 64%);
}

.check input[type="checkbox"]:checked {
  background: #050505;
  box-shadow: 4px 4px 0 #050505;
  transform: translate(-2px, -2px);
}

.check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.check input[type="checkbox"]:focus-visible {
  outline: 3px solid #050505;
  outline-offset: 3px;
}

.check:hover input[type="checkbox"] {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #050505;
}

.check input[type="checkbox"]:checked:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #050505;
}

/* =========================
   チェックボックス修正版
========================= */

.check {
  display: grid !important;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.7;
  margin: 14px 0;
  user-select: none;
}

.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 5px 0 0;
  border: 2px solid #050505;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none !important;
  transform: none !important;
}

.check input[type="checkbox"]::before {
  content: "";
  width: 7px;
  height: 13px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(45deg) scale(0);
  margin-top: -3px;
  transition: transform 0.12s ease;
}

.check input[type="checkbox"]:checked {
  background: #050505;
  border-color: #050505;
  box-shadow: none !important;
}

.check input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1);
}

.check input[type="checkbox"]:hover {
  background: #f3f3f3;
}

.check input[type="checkbox"]:checked:hover {
  background: #050505;
}

.check input[type="checkbox"]:focus-visible {
  outline: 3px solid #050505;
  outline-offset: 3px;
}

/* =========================
   チェックボックス最終修正版
========================= */

.check input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 26px !important;
  height: 26px !important;
  margin: 4px 0 0 !important;
  border: 2px solid #050505 !important;
  background: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
}

.check input[type="checkbox"]::before {
  content: "" !important;
  width: 7px !important;
  height: 13px !important;
  background: transparent !important;
  clip-path: none !important;
  border-right: 4px solid #fff !important;
  border-bottom: 4px solid #fff !important;
  transform: rotate(45deg) scale(0) !important;
  margin-top: -3px !important;
  transition: transform 0.12s ease !important;
}

.check input[type="checkbox"]:checked {
  background: #050505 !important;
  border-color: #050505 !important;
}

.check input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1) !important;
}

.check input[type="checkbox"]:hover {
  background: #f3f3f3 !important;
}

.check input[type="checkbox"]:checked:hover {
  background: #050505 !important;
}
