/* ボクト社 チケット販売 — 画面の見た目
   reference/public-prototype.html の色と形を引き継いでいる */

:root {
  --bg: #f6f1e7;
  --bg-alt: #efe7d6;
  --card: #fffdf9;
  --card-alt: #f8f2e6;
  --border: #e2d7bd;
  --text: #292215;
  --sub: #7a6f5e;
  --accent: #b8402a;
  --accent-dark: #8f3020;
  --accent-soft: #f3e0d8;
  --accent-shadow: rgba(184, 64, 42, 0.22);
  --danger: #a8291f;
  --danger-soft: #f7e0dd;
  --ok: #2f6b3a;
  --ok-soft: #e1efe2;
  --on-accent: #fdf6ee;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1712; --bg-alt: #241d16; --card: #241d16; --card-alt: #2b231a;
    --border: #3c3225; --text: #f1e9da; --sub: #a89b85;
    --accent: #e2764f; --accent-dark: #f0916b; --accent-soft: #3a2a1e; --accent-shadow: rgba(226, 118, 79, 0.28);
    --danger: #e8877c; --danger-soft: #3c211d; --ok: #8fcf98; --ok-soft: #1f3322; --on-accent: #211409;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  padding: 22px 16px 56px;
  overflow-wrap: anywhere;
}
.num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.app { max-width: 540px; margin: 0 auto; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
a { color: var(--accent-dark); }
[hidden] { display: none !important; }

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-dark); margin: 0 0 8px; }
/* ロゴと見出しの行（販売ページ・チケット画面・受付・店頭で共通） */
.brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.brand-row img { width: 36px; height: 36px; flex-shrink: 0; }
.brand-row .eyebrow { margin: 0; }
/* 公演ごとの画像（販売ページの上のフライヤーなど）と、主催者のロゴ */
.event-image { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 14px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 14px; }
.card > h2 { font-size: 15px; margin: 0 0 12px; }
.sub { color: var(--sub); font-size: 13px; }
.note { font-size: 12.5px; color: var(--sub); margin: 6px 0 0; }

/* お知らせ（緊急は赤、案内は色つき） */
.banner { border-radius: var(--radius); padding: 13px 15px; margin-bottom: 14px; font-size: 14px; font-weight: 600; white-space: pre-wrap; }
.banner.emergency { background: var(--danger); color: #fff; }
.banner.info { background: var(--accent-soft); color: var(--accent-dark); }

/* 公演の見出し */
.event-head h1 { font-size: 19px; font-weight: 700; }
.event-head .lead { margin: 10px 0 0; font-size: 13.5px; white-space: pre-wrap; }
.meta { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.meta li { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; padding: 3px 0; }
.meta .k { color: var(--sub); font-size: 12.5px; }
.event-head .states { margin: 10px 0 0; }
.credits { white-space: pre-wrap; }

.head-notes { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.head-notes > h2 { font-size: 14px; margin: 0; }
.head-notes .notes-body { padding: 0; }

/* 回の選択 */
.sessions { display: grid; gap: 10px; }
.session {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; cursor: pointer; font: inherit; color: inherit;
}
.session:hover { border-color: var(--accent); }
.session[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.session:disabled { cursor: default; opacity: 0.65; }
.session .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.session[aria-pressed="true"] .dot { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.session .body { flex: 1; min-width: 0; }
.session .t { font-weight: 700; font-size: 14.5px; }
.session .d { font-size: 12.5px; color: var(--sub); }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--bg-alt); color: var(--sub); }
.pill.on { background: var(--ok-soft); color: var(--ok); }
.pill.few { background: var(--accent-soft); color: var(--accent-dark); }
.pill.off { background: var(--bg-alt); color: var(--sub); }

/* 状態の案内（販売前・売り切れ・終了） */
.state { text-align: center; padding: 26px 16px; }
.state .big { font-size: 17px; font-weight: 700; }
.state .countdown { font-size: 22px; font-weight: 700; margin-top: 8px; }

/* 券種と枚数 */
.ticket-type { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.ticket-type:last-of-type { border-bottom: none; }
.ticket-type .info { flex: 1; min-width: 0; }
.ticket-type .name { font-weight: 700; font-size: 14.5px; }
.ticket-type .price { font-size: 13px; color: var(--sub); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-alt);
  color: var(--text); font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper .count { width: 2.2em; text-align: center; font-size: 18px; font-weight: 700; }
.offline-types { margin-top: 10px; font-size: 12.5px; color: var(--sub); }

.total-bar {
  display: flex; justify-content: space-between; align-items: flex-end;
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius);
  padding: 13px 16px; margin: 14px 0 0; box-shadow: 0 4px 14px var(--accent-shadow);
}
/* 赤い背景の上なので、入力欄の見出しの色（--sub）ではなく、背景に合わせた文字の色にする（明るい表示・暗い表示とも） */
.total-bar .label { display: block; font-size: 11.5px; color: var(--on-accent); opacity: 1; margin-bottom: 1px; }
.total-bar .big { font-size: 24px; font-weight: 700; }
.total-bar .small { font-size: 13px; }

/* 入力 */
label, .label { display: block; font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 16px; /* 16px 未満だと iPhone で拡大される */
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field { margin-bottom: 14px; }
.field-error { border-color: var(--danger) !important; }
.attendee { margin-bottom: 12px; }
.attendee .who { font-size: 11.5px; font-weight: 700; color: var(--accent-dark); margin-bottom: 3px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.check.required { font-weight: 600; }

/* 注意事項 */
details.notes { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
details.notes summary { list-style: none; cursor: pointer; padding: 13px 16px; font-size: 14px; font-weight: 700; background: var(--card-alt); }
details.notes summary::-webkit-details-marker { display: none; }
details.notes summary::before { content: "▸ "; color: var(--accent); }
details.notes[open] summary::before { content: "▾ "; }
.notes-body { padding: 4px 16px 14px; font-size: 13px; }
.notes-body h3 { font-size: 13.5px; margin: 14px 0 4px; color: var(--accent-dark); }
.notes-body ul { margin: 0; padding-left: 1.2em; }
.notes-body li { margin: 2px 0; }
.notes-body p { margin: 6px 0; }

/* ボタン */
.btn {
  appearance: none; border: 1px solid var(--border); background: var(--card); color: var(--text);
  border-radius: 10px; padding: 12px 16px; font-size: 15px; cursor: pointer; font-weight: 700;
  display: inline-block; text-align: center; text-decoration: none;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.block { display: block; width: 100%; padding: 15px 16px; font-size: 16px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 16px; }
/* ボタンの文字を語の途中で折らない（狭い画面では、この固まりの間でだけ折り返す） */
.nw { display: inline-block; white-space: nowrap; }
/* ボタンを横に並べるだけの行（消すボタンが一番大きくならないように） */
.btn-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.btn-line .grow { flex: 1 1 auto; }

.msg { font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-top: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.msg.good { background: var(--ok-soft); color: var(--ok); }

/* 最終確認 */
.confirm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.confirm-table th, .confirm-table td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--border); }
.confirm-table th { width: 7.5em; color: var(--sub); font-weight: 700; font-size: 12.5px; padding-right: 10px; }
.confirm-table .total td { font-size: 19px; font-weight: 700; }
.confirm-table ul { margin: 0; padding-left: 1.1em; }
/* 最終確認の画面の残り時間 */
.confirm-left { text-align: center; font-size: 14px; background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; }
.confirm-left:empty { display: none; }
.confirm-left b { font-size: 19px; font-variant-numeric: tabular-nums; }
.confirm-left.urgent b { color: var(--danger); }
.important { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; margin-top: 14px; font-size: 13px; }

/* チケット */
.ticket { text-align: center; padding: 22px 16px; border-top: 6px solid var(--accent); }
.ticket .series { font-size: 13px; font-weight: 700; color: var(--accent-dark); letter-spacing: 0.1em; }
.ticket .number { font-size: 60px; font-weight: 800; line-height: 1.1; margin: 2px 0 6px; }
.ticket .qr { width: 220px; height: 220px; margin: 10px auto 6px; background: #fff; border-radius: 8px; padding: 4px; }
.ticket .qr svg { width: 100%; height: 100%; display: block; }
.ticket .names { list-style: none; padding: 0; margin: 12px 0 0; font-size: 15px; font-weight: 700; }
.ticket .names .type { font-size: 11.5px; color: var(--sub); font-weight: 700; margin-top: 8px; }
.ticket .no-resale { margin-top: 14px; font-size: 12px; color: var(--sub); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 6px auto 12px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.line-card { display: flex; gap: 12px; align-items: center; }
.line-card .icon { width: 42px; height: 42px; border-radius: 10px; background: #06c755; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.line-card .btn { white-space: nowrap; padding: 9px 12px; font-size: 13px; }

footer { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 16px; color: var(--sub); font-size: 12px; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
footer a { color: inherit; }

/* アンケート */
.survey .q { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.survey .q legend { font-size: 13.5px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.survey .q legend .req { color: var(--danger); font-size: 11px; margin-left: 4px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; margin: 0; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card-alt); min-width: 44px; text-align: center; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 5段階：目盛りの両端の文字を、ボタンの並びの幅にそろえる */
.scale5 { width: max-content; max-width: 100%; }
.scale5 .choices { flex-wrap: nowrap; }
.scale-ends { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--sub); margin-top: 4px; }
.survey textarea { width: 100%; min-height: 90px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.survey-done { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.survey-done .btn { flex-shrink: 0; }

/* アンケート：全曲リストから選ぶ（選んだ曲を上に並べ、一覧は高さを抑えて中だけ動かす） */
.songs-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.songs-picked:empty { display: none; }
.pick-chip {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%;
  background: var(--accent); color: var(--on-accent); border-radius: 999px;
  padding: 0 0 0 12px; font-size: 14px; font-weight: 700;
}
.pick-chip > span { overflow-wrap: anywhere; line-height: 1.4; padding: 6px 0; }
.pick-x {
  flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none;
  color: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
}
.pick-x:focus-visible { outline: 2px solid var(--on-accent); outline-offset: -4px; }
.songs-left { font-size: 13px; font-weight: 700; color: var(--accent-dark); margin: 8px 0; }
.survey input[type="search"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 16px; /* 16px 未満だと iPhone で拡大される */
  -webkit-appearance: none; appearance: none;
}
.song-list {
  margin-top: 8px; max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card-alt);
}
.song-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px;
  padding: 8px 12px; border: 0; border-bottom: 1px solid var(--border); background: none;
  color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.song-opt:last-of-type { border-bottom: 0; }
.song-mark {
  flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; line-height: 1;
}
.song-opt[aria-pressed="true"] { background: var(--accent-soft); font-weight: 700; }
.song-opt[aria-pressed="true"] .song-mark { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.song-opt[aria-pressed="true"] .song-mark::after { content: "✓"; }
.song-opt[aria-disabled="true"] { color: var(--sub); }
.song-opt[aria-disabled="true"] .song-mark { opacity: 0.45; }
.song-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.song-title { flex: 1 1 auto; min-width: 0; }
.song-none { padding: 10px 12px; margin: 0; }

/* アンケート：セットリストから良かった曲を選び、曲ごとにコメント */
.slp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.slp-item { border-bottom: 1px solid var(--border); }
.slp-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px;
  padding: 8px 4px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.slp-toggle .sl-n { align-self: center; }
.slp-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 15px; }
.slp-mark {
  flex-shrink: 0; min-width: 6.5em; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card-alt); color: var(--sub); font-size: 13px; font-weight: 700; text-align: center; white-space: nowrap;
}
.slp-toggle[aria-pressed="true"] .slp-mark { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slp-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.slp-comment { padding: 0 4px 12px 2.9em; }
.survey .slp-comment textarea { min-height: 70px; }
.slp-count { font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-top: 8px; }

/* 整理番号（仮）と残り時間 */
.hold-card { border-top: 6px solid var(--accent); text-align: center; }
.hold-card .hold-number { font-size: 44px; font-weight: 800; line-height: 1.15; margin: 2px 0 8px; }
.hold-card .left { font-size: 15px; margin: 6px 0; }
.hold-card .left b { font-size: 22px; font-variant-numeric: tabular-nums; }
.hold-card .left.urgent b { color: var(--danger); }
.hold-card .summary { font-size: 13px; color: var(--sub); margin-top: 8px; }

/* セットリスト（公演後のアンケートに答えた方に出す） */
.setlist { list-style: none; margin: 8px 0 0; padding: 0; }
.setlist li { border-bottom: 1px solid var(--border); }
.setlist li:last-child { border-bottom: 0; }
.sl-mc { padding: 10px 4px; font-size: 13px; color: var(--sub); font-weight: 700; }
.sl-song {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  padding: 12px 4px; background: none; border: 0; text-align: left;
  color: var(--text); font: inherit; cursor: pointer;
}
.sl-song[disabled] { cursor: default; }
.sl-n { flex: 0 0 1.8em; text-align: right; color: var(--sub); font-weight: 800; }
.sl-t { flex: 1 1 auto; font-weight: 700; }
.sl-t .sub { font-weight: 400; }
.sl-more { flex: 0 0 auto; color: var(--accent); font-weight: 800; }
.sl-albums { padding: 0 4px 12px 2.9em; font-size: 13.5px; }

/* チケット一覧（入り口のページ） */
.list-title { font-size: 20px; font-weight: 700; margin: 4px 0 14px; }
.event-list { display: grid; gap: 14px; }
.list-card { display: block; color: inherit; text-decoration: none; padding: 0; overflow: hidden; }
.list-card:hover { border-color: var(--accent); }
.list-image { display: block; width: 100%; max-height: 360px; object-fit: cover; object-position: top; background: var(--bg-alt); }
.list-body { padding: 16px; }
.list-body h2 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.list-body .states { margin: 10px 0 0; }
.list-sessions { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.list-sessions li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.list-body .btn { margin-top: 14px; }
.about { margin-top: 14px; font-size: 14px; }
.about h2 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.about h3 { font-size: 14.5px; font-weight: 700; margin: 18px 0 6px; }
.about p { margin: 6px 0; }
.about ul, .about ol { margin: 6px 0; padding-left: 1.4em; }
.about li { margin: 3px 0; }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.office figure { margin: 0; }
.office img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.office figcaption { font-size: 12px; color: var(--sub); margin-top: 4px; }

/* 特商法の表記・購入規約・プライバシーポリシー（/legal） */
.legal { font-size: 14px; line-height: 1.8; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; padding-top: 8px; border-top: 1px solid var(--border); scroll-margin-top: 12px; }
.legal h2:first-of-type { border-top: 0; }
.legal h4 { font-size: 14.5px; font-weight: 700; margin: 18px 0 4px; }
.legal p { margin: 6px 0; }
.legal ul, .legal ol { margin: 6px 0; padding-left: 1.5em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.legal th { width: 8.5em; color: var(--sub); font-weight: 600; }
@media (max-width: 640px) {
  .legal th, .legal td { display: block; width: auto; padding: 4px 0; }
  .legal th { padding-top: 10px; border-bottom: 0; }
}

/* マイページ（/me）。ログイン・これからの公演・見たライブ・次の公演・あとから書いた感想 */
.me-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.me-login p { margin: 0 0 14px; font-size: 14px; }
.me-sent-to { font-weight: 700; font-size: 15px; background: var(--card-alt); border-radius: 8px; padding: 8px 12px; }
.me-top-msg { margin: 0 0 14px; }
.me-user { display: flex; align-items: center; gap: 12px; }
.me-user-body { flex: 1 1 auto; min-width: 0; }
.me-name { font-size: 17px; font-weight: 700; }
.me-small { padding: 9px 12px; font-size: 13px; flex-shrink: 0; }
.me-section { margin-top: 22px; }
.me-h { font-size: 16px; font-weight: 700; margin: 0 0 10px; padding-left: 10px; border-left: 4px solid var(--accent); }
.me-empty { font-size: 13.5px; color: var(--sub); margin: 0 0 14px; }
.me-event { font-size: 16px; font-weight: 700; margin: 0; }
.me-ticket { border-top: 6px solid var(--accent); }
.me-ticket .states { margin: 10px 0 0; }
.me-no { font-size: 18px; }
.me-open { margin-top: 14px; }
.me-next .me-event { margin-bottom: 4px; }
.me-next .states { margin: 10px 0 0; }
.me-past { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.me-past-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); min-height: 56px; }
.me-past-row:last-child { border-bottom: 0; }
.me-past-row:hover { background: var(--card-alt); }
.me-past-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.me-past-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.me-past-date { font-size: 12.5px; font-weight: 700; color: var(--accent-dark); margin: 0; }
.me-past-name { font-size: 15px; font-weight: 700; line-height: 1.45; }
.me-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.me-arrow { flex-shrink: 0; font-size: 24px; color: var(--sub); line-height: 1; }
.me-back { margin: 0 0 12px; font-size: 14px; }
.me-back a { display: inline-block; padding: 6px 0; font-weight: 700; text-decoration: none; }
.me-saved { font-weight: 400; font-size: 12.5px; }
.me-sl-song { cursor: default; }
.me-answers { margin: 0; }
.me-answer { padding: 10px 0; border-bottom: 1px solid var(--border); }
.me-answer:last-child { border-bottom: 0; padding-bottom: 0; }
.me-answer:first-child { padding-top: 0; }
.me-answer dt { font-size: 12.5px; font-weight: 700; color: var(--sub); margin-bottom: 2px; }
.me-answer dd { margin: 0; font-size: 14.5px; white-space: pre-wrap; }
.me-songs { list-style: none; margin: 0; padding: 0; white-space: normal; }
.me-songs li { padding: 4px 0; }
.me-comment { font-size: 13.5px; color: var(--sub); white-space: pre-wrap; margin-top: 1px; }
.me-note-text { font-size: 14.5px; white-space: pre-wrap; background: var(--card-alt); border-radius: 8px; padding: 10px 12px; }
.me-textarea { width: 100%; min-height: 150px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; /* 16px 未満だと iPhone で拡大される */ }
.me-textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.me-count { text-align: right; margin-top: 4px; }
.me-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* お客様の画面の三本線のメニュー（common.js の siteMenu） */
.site-menu { margin-left: auto; position: relative; }
.site-menu-btn { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.site-menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 1px; }
.site-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.site-menu-list a { display: block; padding: 12px 14px; color: var(--text); text-decoration: none; border-radius: calc(var(--radius) - 2px); font-size: 16px; }
.site-menu-list a:hover, .site-menu-list a:focus-visible { background: var(--card-alt); }
.site-menu-list a[aria-current="page"] { font-weight: 700; color: var(--accent); }

/* 承認された感想（マイページの「ほかの来場者の感想」、販売ページの「来場された方の感想」）。名前は出さない */
.voice-list { list-style: none; margin: 0; padding: 0; }
.voice { padding: 12px 0; border-bottom: 1px solid var(--border); }
.voice:first-child { padding-top: 0; }
.voice:last-child { border-bottom: 0; padding-bottom: 0; }
.voice-session { font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 2px; }
.voice-text { font-size: 14.5px; line-height: 1.8; white-space: pre-line; }
/* 長い文は6行で折りたたむ */
.voice-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.voice-toggle { display: inline-block; margin-top: 2px; padding: 8px 0; min-height: 44px; background: none; border: 0; color: var(--accent-dark); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.voice-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.voices .voice-more { margin-top: 12px; }

/* チケット一覧の3つの欄（マイページ・これからの公演・これまでの公演） */
.list-section { font-size: 18px; margin: 22px 2px 10px; }
#member .btn { margin-top: 10px; }
.past-list, .about .past-list { list-style: none; padding: 0; margin: 0 0 12px; }
.past-list li + li { border-top: 1px solid var(--border); }
.past-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; color: var(--text); text-decoration: none; }
.past-list .past-date { font-size: 13px; color: var(--sub); }
.past-list .past-name { font-weight: 700; }

/* 審査用の「チケットについて」を畳めるようにする（公演があるときは畳む） */
.about-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.about-fold > summary::-webkit-details-marker { display: none; }
.about-fold > summary h2 { margin: 0; font-size: 17px; }
.about-fold > summary::after { content: "開く"; font-size: 13px; color: var(--accent); flex-shrink: 0; }
.about-fold[open] > summary::after { content: "閉じる"; }
.about-fold[open] > summary { margin-bottom: 8px; }

/* 審査がすべて終わったサイト（REVIEWS_DONE）では、審査用の欄と事業所の写真を出さない */
html[data-reviews-done] #about, html[data-reviews-done] #office { display: none; }
