/* ============================================================
   SAKANAQUARIUM 2026 — Ticket Reception
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Noto Sans JP', 'Helvetica Neue', Arial,
               'YuGothic', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  font-weight: 400;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; }

/* WOVN多言語対応: 翻訳時のはみ出し防止 */
.card, .card-body, .card-left, .card-right,
.card-notice, .card-about, .card-about-body,
.card .terms, .card .terms dd,
.card-links, .card-btn {
  overflow-wrap: break-word;
  word-break: break-word;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:root {
  --bg:     #ffffff;
  --fg:     #060606;
  --muted:  rgba(6,6,6,0.68);
  --dim:    rgba(6,6,6,0.42);
  --border: rgba(6,6,6,0.1);
  --line:   #060606;
  --line-2: #d8d8d8;
  --line-3: #ececec;
  --bg-soft: #f7f7f7;
  --maxw: 720px;
  --pad: 20px;
  --font-head: din-2014, 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', 'YuGothic', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* --- Layout --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* --- Logo (fixed top-left) --- */
.hero-logo-link {
  position: fixed;
  top: clamp(24px, 5vw, 48px);
  left: clamp(24px, 5vw, 72px);
  z-index: 200;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.hero-logo-link.is-visible {
  opacity: 0.78;
  pointer-events: auto;
}
.hero-logo {
  display: block;
  height: 32px;
}

/* --- WOVN language switcher --- */
.wovn-languages {
  position: fixed;
  top: clamp(24px, 5vw, 48px);
  right: clamp(24px, 5vw, 72px);
  z-index: 200;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.wovn-languages .langIcon {
  white-space: nowrap;
}

/* --- Utility bar --- */
.util {
  border-bottom: 1px solid var(--line-3);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.util .wrap {
  height: 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.util .crumb { text-transform: uppercase; font-family: var(--font-head); letter-spacing: 0.18em; }
.util .upd time { font-variant-numeric: tabular-nums; font-family: var(--font-head); }

/* --- Masthead --- */
.mast {
  padding: 48px 0 40px;
}
.mast .eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.48em;
  color: var(--dim);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.mast h1 {
  margin: 0;
  text-align: center;
}
.mast-title {
  display: inline-block;
  width: 100%;
  max-width: 620px;
  height: auto;
}
.mast h1 .en {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.24em;
  margin-top: 8px;
  text-transform: uppercase;
}
.mast .lede {
  margin: 20px 0 0;
  font-size: 0.82rem;
  font-family: var(--font-jp);
  color: var(--muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* --- Status banner --- */
.status {
  margin-top: 32px;
  border: 1px solid var(--fg);
  padding: 24px 24px 20px;
}
.status .ribbon {
  display: inline-block;
  background: var(--fg);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.status h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}
.status .sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.status .countdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: flex; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.status .countdown .num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-right: 10px;
}
.status .countdown .lab {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* --- Anchor nav (circle buttons — fixed bottom) --- */
.anchor-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}
.anchor-btn + .anchor-btn {
  margin-left: 24px;
}
.anchor-btn {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(6,6,6,0.32);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: border-color 0.35s, background 0.35s, transform 0.25s;
}
.anchor-btn span {
  font-family: var(--font-jp);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}
.anchor-btn:hover {
  border-color: rgba(6,6,6,0.7);
  transform: scale(1.06);
}
.anchor-btn.is-active {
  background: var(--fg);
  border-color: var(--fg);
}
.anchor-btn.is-active span {
  color: var(--bg);
}

/* SP: ボタンを小さく */
@media (max-width: 768px) {
  .anchor-nav {
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  }
  .anchor-btn + .anchor-btn {
    margin-left: 14px;
  }
  .anchor-btn {
    width: 64px; height: 64px;
  }
  .anchor-btn span {
    font-size: 0.58rem;
  }
}

/* --- Section heading --- */
section { padding: 64px 0 16px; }
#schedule,
#howto {
  background: #f5f5f5;
  padding-bottom: 48px;
}
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.sec-head .num {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.sec-note {
  font-size: 0.78rem;
  font-family: var(--font-jp);
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* --- Filter chips --- */
.filters-wrap {
  position: relative;
  margin: 0 0 24px;
}
.filters-arrow {
  display: none;
}
@media (max-width: 768px) {
  .filters-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 20px;
    font-weight: 700;
    color: var(--fg);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
  }
  .filters-arrow--left { left: 0; display: block; }
  .filters-arrow--right { right: 0; display: block; opacity: 0.5; }
  .filters-arrow--right.is-hidden { opacity: 0; }
  .filters-arrow--left.is-visible { opacity: 0.5; }
}
.filters {
  display: flex;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}
.filters::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  .filters {
    -webkit-mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
  }
  .filters.is-scrolled {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 88%, transparent 100%);
  }
  .filters.is-end {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 100%);
  }
}
.chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-family: var(--font-jp);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  line-height: 1;
  text-align: center;
  border-radius: 0;
  transition: background 150ms, color 150ms, border-color 150ms;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover {
  background: #eee;
  border-color: rgba(6,6,6,0.2);
}
.chip:active {
  transform: scale(0.96);
}
.chip + .chip {
  margin-left: -1px;
}
.chip[aria-pressed="true"] {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
  position: relative;
  z-index: 1;
}
.chip .n {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  font-size: 0.72rem;
}
.chip[aria-pressed="true"]:hover {
  background: var(--fg);
  border-color: var(--fg);
}
.chip[aria-pressed="true"] .n { color: rgba(255,255,255,0.5); }

/* --- Schedule cards --- */
.sched {
  display: flex; flex-direction: column;
}
.card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 24px;
  margin-bottom: 16px;
}
.card[hidden] { display: none; }
.card-in {
  animation: cardFadeIn 0.3s ease both;
}
.card-out {
  animation: cardFadeOut 0.25s ease both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.card.is-now {
  border-color: var(--fg);
  border-width: 2px;
}

.card .row1 {
  display: flex; align-items: center; flex-wrap: wrap;
  margin-bottom: 4px;
}
.card .row1 > * + * { margin-left: 8px; }

/* Badge — 受付区分 */
.card .badge {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 6px 14px;
  line-height: 1;
  white-space: nowrap;
}
.card .badge.b-fc {
  background: var(--fg);
  color: #fff;
}
.card .badge.b-eplus {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.card .badge.b-pia {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.card .badge.b-overseas {
  background: #2c5f7c;
  color: #fff;
}

/* English subtitle on card */
.card-title-en {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* State — 受付状態 */
.card .state {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  line-height: 1;
  white-space: nowrap;
}
.card .state.s-now {
  background: var(--fg);
  color: #fff200;
  animation: pulse-now 2s ease-in-out infinite;
}
@keyframes pulse-now {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.card .state.s-soon {
  background: var(--bg-soft);
  color: var(--muted);
}
.card .state.s-done {
  background: var(--bg-soft);
  color: var(--dim);
}
.card .state.s-tba {
  background: #fff;
  color: var(--dim);
  border: 1px dashed var(--line-2);
}

.card h3 {
  margin: 14px 0 6px;
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.card .meta {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-family: var(--font-jp);
  color: var(--muted);
  line-height: 1.7;
}

/* Card 2-column layout */
.card-body {
  display: flex;
  margin-top: 12px;
}
.card-left {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}
.card-right {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--line-3);
  padding-left: 24px;
}

.card .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  font-size: 0.8rem;
}
.card .timeline li {
  display: flex; align-items: baseline;
  border-bottom: 1px solid var(--line-3);
  padding: 8px 0;
}
.card .timeline li:last-child {
  border-bottom: none;
}
.card .timeline .lab {
  font-family: var(--font-jp);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 80px;
}
.card .timeline .date {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0.02em;
  margin-left: auto;
  color: var(--fg);
}
.card .timeline .date .dow {
  color: var(--dim);
  font-size: 0.68rem;
  margin-left: 4px;
}
.card .timeline .time {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  font-size: 0.75rem;
  min-width: 40px;
  margin-left: 12px;
}

.card .timeline li.is-current .lab,
.card .timeline li.is-current .date,
.card .timeline li.is-current .time {
  font-weight: 600;
  color: var(--fg);
}
.card .timeline li.is-current .lab::before {
  content: "\25B6";
  margin-right: 6px;
  color: var(--fg);
  font-size: 9px;
  vertical-align: 1px;
}
.card .timeline li.is-past .lab,
.card .timeline li.is-past .date,
.card .timeline li.is-past .time {
  color: var(--dim);
}

.card .terms {
  margin: 12px 0 0;
  padding: 0;
  background: none;
  font-size: 0.75rem;
  font-family: var(--font-jp);
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
}
.card .terms dt {
  width: 64px;
  flex-shrink: 0;
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-top: 1px solid var(--line-3);
}
.card .terms dt:first-of-type { border-top: none; }
.card .terms dd {
  width: calc(100% - 64px);
  margin: 0;
  padding: 6px 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg);
  border-top: 1px solid var(--line-3);
}
.card .terms dd:first-of-type { border-top: none; }
.card .terms ul { margin: 0; padding-left: 16px; }
.card .terms li { margin: 0; }

/* Yuugu (status priority) table */
.yuugu {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-3);
}
.yuugu-title {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 8px;
}
.yuugu-note {
  font-family: var(--font-jp);
  font-size: 0.68rem;
  color: var(--dim);
  line-height: 1.6;
  margin: 0 0 12px;
}
.yuugu-sub {
  font-family: var(--font-jp);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 16px 0 8px;
}
.yuugu-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.yuugu-table,
.yuugu-example {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-jp);
  font-size: 0.72rem;
  text-align: center;
  table-layout: fixed;
}
.yuugu-table th,
.yuugu-table td,
.yuugu-example th,
.yuugu-example td {
  border: 1px solid var(--line-3);
  padding: 4px 3px;
  line-height: 1.3;
  word-break: break-all;
}
.yuugu-table th,
.yuugu-example th {
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.6rem;
}
.yuugu-table td {
  color: var(--fg);
  font-weight: 500;
}
.yuugu-axis {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
}
.yuugu-example td {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Yuugu status colors */
.yc-shinkai { background: #1a3a5c !important; color: #fff !important; }
.yc-chuso   { background: #2e6b8a !important; color: #fff !important; }
.yc-asase   { background: #5ba3c9 !important; color: #fff !important; }
.yc-suimen  { background: #a8d8ea !important; color: var(--fg) !important; }
.yc-non     { background: var(--bg-soft) !important; color: var(--muted) !important; }

/* Card about (受付について) */
.card-about {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-3);
}
.card-about-title {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 12px;
}
.card-about-body {
  font-family: var(--font-jp);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.75;
  letter-spacing: 0.01em;
}
.card-about-body strong {
  color: var(--fg);
  font-weight: 600;
}

/* Card links (応募ボタン) */
.card-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0 !important;
}
.card-notice {
  background: #fff3f3;
  border: 1px solid #ec453b;
  color: #ec453b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  margin: 10px 0 14px;
  line-height: 1.6;
  text-align: center;
}
.card-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 14px 0;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-jp);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
  cursor: pointer;
}
.card-btn:hover { opacity: 0.75; }
.card-btn + .card-btn { margin-top: 10px; }
.card-btn--primary {
  background: var(--fg);
  color: #fff;
}
.card-btn.link-overseas {
  background: #2c5f7c;
  color: #fff;
  border: 1px solid #2c5f7c;
}
.card-btn:not(.card-btn--primary):not(.link-overseas) {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--fg);
}

.card .tba {
  font-size: 0.78rem;
  font-family: var(--font-jp);
  color: var(--muted);
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-2);
}

/* --- FC highlight card --- */
.fc-hero {
  border: 2px solid var(--fg);
  padding: 0;
  margin: 0 0 18px;
}
.fc-hero .fc-hd {
  background: var(--fg);
  color: #fff;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.24em;
}
.fc-hero .fc-bd { padding: 16px 16px 4px; }
.fc-hero h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.fc-hero .fc-sub { margin: 0 0 10px; font-size: 12px; color: var(--muted); }

/* --- Shows --- */
.shows { }
.show-group { border-bottom: 1px solid var(--border); padding: 14px 0; }
.show-group h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.show-group h3 .city {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
}
.show-list { list-style: none; padding: 0; margin: 0; }
.show-list li {
  display: flex; align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line-3);
  font-size: 13.5px;
}
.show-list li:first-child { border-top: 0; }
.show-list .d {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 56px;
}
.show-list .d small { font-weight: 400; color: var(--muted); margin-left: 2px; font-size: 11px; }
.show-list .ven { color: var(--muted); margin-left: 12px; }
.show-list .t {
  font-family: var(--font-head);
  font-size: 0.72rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0.02em;
  margin-left: auto;
}

/* --- Tickets (summary) --- */
.tk-summary {
  display: flex;
  justify-content: center;
  margin: 0;
  font-size: 0 !important;
}
.tk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 20px 0;
  border-right: 1px solid var(--border);
}
.tk-item:last-child { border-right: none; }
.tk-rank {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.tk-price {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-top: 6px;
}

/* --- Seatmap --- */
.seatmap-heading {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-align: center;
  margin: 32px 0 16px;
}
.seatmap-grid {
  display: flex;
  justify-content: center;
  font-size: 0 !important;
  margin-bottom: 16px;
}
.seatmap-thumb {
  flex: 1;
  max-width: 220px;
  cursor: pointer;
  padding: 0 8px;
  position: relative;
}
.seatmap-thumb::after {
  content: '';
  position: absolute;
  top: 0; left: 8px; right: 8px; bottom: 24px;
  background: rgba(0,0,0,0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cline x1='18' y1='18' x2='25' y2='25'/%3E%3C/svg%3E") no-repeat center center;
  opacity: 0;
  transition: background-color 0.25s, opacity 0.25s;
  pointer-events: none;
}
.seatmap-thumb:hover::after {
  background-color: rgba(0,0,0,0.35);
  opacity: 1;
}
.seatmap-thumb:active::after {
  background-color: rgba(0,0,0,0.35);
  opacity: 1;
}
.seatmap-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.seatmap-label {
  display: block;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Modal */
.seatmap-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.3s;
}
.seatmap-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s 0s;
}
.seatmap-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.seatmap-modal.is-open .seatmap-modal-bg {
  opacity: 1;
}
.seatmap-modal-body {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.seatmap-modal.is-open .seatmap-modal-body {
  opacity: 1;
  transform: scale(1);
}
.seatmap-modal-body img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
}
.seatmap-modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  font-size: 52px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
.seatmap-modal.is-open .seatmap-modal-close {
  opacity: 1;
}

@media (max-width: 768px) {
  .seatmap-thumb {
    max-width: none;
    padding: 0 4px;
  }
  .seatmap-thumb::after {
    background-color: rgba(0,0,0,0.2);
    opacity: 1;
  }
}

/* --- Notes --- */
.notes {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}
.notes li {
  border-top: 1px solid var(--line-3);
  padding: 10px 0;
  padding-left: 18px;
  position: relative;
}
.notes li:first-child { border-top: none; }
.notes li::before {
  content: "\203B";
  position: absolute; left: 0; top: 10px;
  color: var(--muted);
}

/* --- Detail groups (受付詳細) --- */
.detail-group {
  margin-bottom: 40px;
}
.detail-title {
  font-family: var(--font-jp);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 16px;
}
.detail-text {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
}
.detail-text strong {
  color: var(--fg);
  font-weight: 600;
}
.detail-box {
  background: var(--bg-soft);
  padding: 16px 20px;
  margin: 16px 0;
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
}
.detail-box-title {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 8px;
  line-height: 1.6;
}
.detail-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.detail-list li {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* --- Footer --- */
/* --- How to apply (応募方法) --- */
.step {
  display: flex;
  margin-bottom: 32px;
}
.step-num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--fg);
  width: 72px;
  padding-top: 2px;
}
.step-body {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.step-lead {
  font-family: var(--font-jp);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 12px;
  line-height: 1.6;
}
.step-sub {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 12px;
}
.step-block {
  margin-bottom: 16px;
}
.step-block-title {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 8px;
}
.step-dl {
  display: flex;
  margin: 0 0 8px;
  font-family: var(--font-jp);
  font-size: 0.78rem;
  line-height: 1.7;
}
.step-dl dt {
  flex-shrink: 0;
  width: 56px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 500;
  padding-top: 2px;
}
.step-dl dd {
  margin: 0;
  color: var(--muted);
}
.step-dl dd small {
  font-size: 0.68rem;
  color: var(--dim);
}

@media (max-width: 768px) {
  .step { flex-direction: column; margin-bottom: 24px; }
  .step-num { width: auto; margin-bottom: 8px; }
  .step-body { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}
.faq-q {
  font-family: var(--font-jp);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
  padding: 18px 32px 18px 0;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.faq-q:hover {
  color: var(--fg);
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s;
}
.faq-q.is-open::after {
  transform: translateY(-35%) rotate(-135deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.faq-a.is-open {
  max-height: 2000px;
  opacity: 1;
  padding: 0 0 20px;
}
.faq-a p {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.85;
  letter-spacing: 0.02em;
}
.faq-a a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s, opacity 0.3s;
}
.faq-a a:hover {
  opacity: 0.6;
}
.faq-a small {
  font-size: 0.75rem;
  color: var(--dim);
}

.footer {
  padding: 64px 0 140px;
  display: flex; justify-content: center;
}
.footer-logo { height: 24px; opacity: 0.4; }

/* ============================================================
   Responsive
   ============================================================ */

/* SP */
@media (max-width: 768px) {
  .mast { padding: 56px 0 28px; }
  .mast-title { width: 100%; max-width: none; }

  section { padding: 40px 0 12px; }
  .sec-head h2 { font-size: 1rem; }
  .sec-note { font-size: 0.75rem; margin-bottom: 20px; }

  .status { padding: 16px; }
  .status h2 { font-size: 0.95rem; }
  .status .sub { font-size: 0.72rem; }
  .status .countdown .num { font-size: 24px; }

  .card { padding: 16px; margin-bottom: 12px; }
  .card h3 { font-size: 0.92rem; margin: 10px 0 4px; }
  .card .meta { font-size: 0.72rem; margin-bottom: 12px; }
  .card .badge { font-size: 0.68rem; padding: 6px 12px; white-space: normal; }
  .card .state { font-size: 0.55rem; padding: 5px 10px; white-space: normal; }
  .card .timeline li { flex-wrap: wrap; }
  .card .timeline .lab { font-size: 0.68rem; min-width: 64px; white-space: nowrap; }
  .card .timeline .date { font-size: 0.75rem; }
  .card .timeline .time { font-size: 0.68rem; }
  .card h3 { word-break: break-word; }
  .card .terms { padding: 12px 14px; font-size: 0.72rem; }
  .card .terms dt { font-size: 0.62rem; }
  .card .terms dd { font-size: 0.72rem; }

  .filters { margin-bottom: 16px; }
  .chip { font-size: 0.78rem; padding: 10px 14px; }

  .tk-item { padding: 14px 0; }
  .tk-rank { font-size: 0.62rem; white-space: nowrap; }
  .tk-price { font-size: 0.82rem; }

  .card-body { flex-direction: column; }
  .card-left { padding-right: 0; }
  .card-right { border-left: none; padding-left: 0; margin-top: 16px; }
  .card-btn { font-size: 0.75rem; padding: 12px 0; }

  .yuugu-table,
  .yuugu-example { font-size: 0.58rem; }
  .yuugu-table th,
  .yuugu-example th { font-size: 0.5rem; }
  .yuugu-table th,
  .yuugu-table td,
  .yuugu-example th,
  .yuugu-example td { padding: 3px 2px; }
  .yuugu-axis { font-size: 0.5rem; }
  .yuugu-example td { font-size: 0.58rem; }
  .yuugu-scroll { overflow-x: visible; }

  .notes { font-size: 0.75rem; }

  .faq-q { font-size: 0.82rem; padding: 14px 28px 14px 0; }
  .faq-a p { font-size: 0.75rem; }

  .footer { padding: 48px 0 120px; }
  .footer-logo { height: 20px; }
}

/* PC */
@media (min-width: 769px) {
  .mast { padding: 64px 0 48px; }
  .mast-title { width: 100%; max-width: 620px; }

  section { padding: 80px 0 24px; }

  .status {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px;
  }
  .status .countdown {
    margin: 0; padding: 0;
    border-top: none;
    border-left: 1px dashed var(--line-2);
    padding-left: 24px;
  }
}

/* --- Scroll reveal --- */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 140px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: scale(1.1);
}
.back-to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translateY(2px);
}
@media (max-width: 768px) {
  .back-to-top {
    right: 14px;
    bottom: 110px;
    width: 38px;
    height: 38px;
  }
}

/* WOVN翻訳時（日本語以外）のレイアウト調整 */
html:not([lang="ja"]) .card .timeline li {
  flex-wrap: wrap;
}
html:not([lang="ja"]) .card .timeline .lab {
  white-space: normal;
  min-width: auto;
  width: 100%;
  margin-bottom: 2px;
}
html:not([lang="ja"]) .card .timeline .date {
  white-space: normal;
  text-align: left;
  margin-left: 0;
}
html:not([lang="ja"]) .card .timeline .time {
  white-space: normal;
  text-align: left;
  margin-left: 8px;
}
html:not([lang="ja"]) .card .badge {
  white-space: normal;
}
html:not([lang="ja"]) .card h3 {
  word-break: break-word;
}

/* SP: 翻訳時は完全縦積み */
@media (max-width: 768px) {
  html:not([lang="ja"]) .card .timeline li {
    flex-direction: column;
    align-items: flex-start;
  }
  html:not([lang="ja"]) .card .timeline .time {
    margin-left: 0;
  }
}
