:root {
  --bg: #0d0b0a;
  --bg-2: #161210;
  --paper: #f4ede2;
  --paper-2: #e9dfcf;
  --ink: #f4ede2;
  --ink-dark: #1c1714;
  --muted: #a99d8f;
  --muted-dark: #6d6158;
  --line: rgba(244, 237, 226, .14);
  --accent: #e2714f;
  --accent-deep: #c4573a;
  --gold: #d2b47e;
  --ok: #2f7d4f;
  --display: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: min(70vh, 660px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 11, 10, .92) 0%, rgba(13, 11, 10, .72) 38%, rgba(13, 11, 10, .1) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 11, 10, 0) 38%);
}
.hero-inner {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 96px 32px 150px;
}
.brand {
  margin: 0 0 28px; display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.brand i { width: 28px; height: 1px; background: currentColor; }
h1 { margin: 0; font-weight: 900; line-height: 1.25; }
.h1-sub { display: block; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: .04em; }
.h1-main { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 10px; font-family: var(--display); color: var(--accent); }
.h1-main b {
  font-size: clamp(120px, 15vw, 190px); line-height: .82; font-weight: 700; letter-spacing: -.05em;
  text-shadow: 0 0 40px rgba(226, 113, 79, .35);
}
.h1-main em { font-style: normal; font-size: clamp(34px, 4.6vw, 58px); line-height: .95; font-weight: 700; padding-top: .12em; }
.lead { max-width: 30em; margin: 22px 0 0; color: #d9cfc2; font-size: 15px; }

/* ---------- チケット ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.ticket {
  --notch: 18px;
  position: relative; z-index: 1;
  margin: -150px 0 0 auto; max-width: 700px;
  display: grid; grid-template-columns: 168px 1fr;
  color: var(--ink-dark);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}
.ticket-stub, .ticket-body { background: var(--paper); }
.ticket-stub {
  border-radius: 14px 0 0 14px;
  background: var(--accent);
  color: #fff8f0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 10px;
  /* ミシン目側の半円の切り欠き */
  -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.stub-label { font-family: var(--display); font-size: 11px; letter-spacing: .26em; font-weight: 700; writing-mode: vertical-rl; opacity: .85; }
.stub-off { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1; letter-spacing: -.04em; text-align: center; }
.stub-off small { display: block; font-size: 15px; letter-spacing: .04em; margin-top: 4px; }
.ticket-body {
  position: relative;
  border-radius: 0 14px 14px 0;
  padding: 34px 36px 32px;
  background-image: radial-gradient(rgba(28, 23, 20, .05) 1px, transparent 1px);
  background-size: 6px 6px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-body::before {
  content: ''; position: absolute; left: 0; top: 26px; bottom: 26px;
  border-left: 2px dashed rgba(28, 23, 20, .28);
}
.ticket-title { margin: 0 0 18px; font-size: 18px; font-weight: 700; }

.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(28, 23, 20, .1); font-weight: 500; }
.steps li:last-child { border-bottom: 0; }
.num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent-deep); letter-spacing: .06em; }
.steps small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-dark); line-height: 1.6; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 12px 20px;
  border: 0; border-radius: 999px; background: var(--ink-dark); color: var(--paper);
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn i { color: var(--accent); }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn:focus-visible, .copy:focus-visible, .link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--ink-dark); border: 1px solid rgba(28, 23, 20, .25); min-height: 48px; font-size: 14px; font-weight: 500; margin-top: 22px; }
.btn.ghost:hover { background: rgba(28, 23, 20, .05); transform: none; }

.view[data-view="busy"] { text-align: center; padding: 28px 0; }
.reel { font-size: 38px; color: var(--accent-deep); margin-bottom: 12px; animation: spin 1.6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reel { animation: none; } }
.status { margin: 0; font-weight: 500; }

.ok { margin: 0 0 18px; color: var(--ok); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.label { margin: 0 0 6px; font-size: 13px; color: var(--muted-dark); }
.code-box { display: flex; align-items: stretch; gap: 8px; }
.code-box code {
  flex: 1; min-width: 0; padding: 14px 18px; border-radius: 10px;
  background: #fffaf2; border: 2px dashed var(--accent);
  font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere;
  user-select: all;
}
.copy {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 78px; padding: 8px; border-radius: 10px; border: 0;
  background: var(--ink-dark); color: var(--paper); font: inherit; font-size: 11px; cursor: pointer;
}
.copy i { font-size: 18px; }
.notes { margin: 18px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--muted-dark); }
.notes li + li { margin-top: 4px; }
.notes a { color: var(--accent-deep); font-weight: 700; }

.view[data-view="message"] { text-align: center; }
.msg-icon { margin: 0 0 6px; font-size: 40px; color: var(--accent-deep); }
.msg-title { margin: 0 0 8px; font-weight: 700; font-size: 17px; }
.msg-body { margin: 0; color: var(--muted-dark); font-size: 14px; text-align: left; }

.wallet-note { max-width: 720px; margin: 18px 0 0 auto; font-size: 13px; color: var(--muted); display: flex; gap: 10px; }
.wallet-note i { margin-top: .45em; color: var(--gold); }

/* ---------- 使える場所 ---------- */
.place {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
  margin-top: 120px; padding-top: 72px; border-top: 1px solid var(--line);
}
.kicker { margin: 0 0 12px; font-family: var(--display); font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.nb { display: inline-block; }
.place h2 { margin: 0 0 18px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.45; font-weight: 900; }
.place-text p:not(.kicker) { margin: 0 0 24px; color: #d9cfc2; font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--accent); }
.link i { color: var(--accent); transition: transform .2s; }
.link:hover i { transform: translateX(4px); }
.place-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.place-photos img { width: 100%; height: auto; object-fit: cover; border-radius: 6px; aspect-ratio: 4 / 3; }

/* ---------- ご利用条件 ---------- */
.terms { margin-top: 96px; max-width: 720px; }
.terms h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.terms dl { margin: 0; border-top: 1px solid var(--line); }
.terms dl div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; }
.terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.foot { max-width: 1180px; margin: 96px auto 0; padding: 28px 32px 48px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot p { margin: 0; }
.foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.copy-line { margin-top: 8px !important; font-family: var(--display); letter-spacing: .08em; }

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-img { object-position: 22% 50%; }
  .hero::after {
    background: linear-gradient(0deg, var(--bg) 6%, rgba(13, 11, 10, .78) 46%, rgba(13, 11, 10, .35) 100%);
  }
  .hero-inner { padding: 64px 16px 108px; }
  .brand { margin-bottom: 18px; font-size: 11px; }
  .h1-main b { font-size: 112px; }
  .h1-main em { font-size: 32px; }
  .lead { font-size: 14px; margin-top: 16px; }
  main { padding: 0 16px; }
  .ticket { --notch: 14px; margin-top: -72px; grid-template-columns: 1fr; }
  .ticket-stub {
    border-radius: 14px 14px 0 0; flex-direction: row; padding: 14px 20px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .stub-label { writing-mode: horizontal-tb; font-size: 10px; }
  .stub-off { font-size: 30px; display: flex; align-items: baseline; gap: 4px; }
  .stub-off small { display: inline; font-size: 12px; margin: 0; }
  .ticket-body {
    border-radius: 0 0 14px 14px; padding: 26px 20px 24px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .ticket-body::before { left: 22px; right: 22px; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed rgba(28, 23, 20, .28); }
  .code-box code { font-size: 20px; padding: 12px 14px; }
  .place { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; padding-top: 48px; }
  .terms { margin-top: 64px; }
  .terms dl div { grid-template-columns: 6.5em 1fr; gap: 10px; }
  .foot { margin-top: 64px; padding: 24px 16px 40px; }
}
