/* =====================================================================
   MOMENT COMPONENTS
   tokens.css の変数だけを使う。色コードや見た目の数値を直接書かない。
   クラス名と HTML の入れ子は「部品の約束」。ショップが変わっても変えない。
   見た目（色・形・モチーフ）は tokens.css と、このファイルの各部品の中だけで変える。
   PC の並びは @media (min-width:768px) に html:not(.ds-mobile) を付けて書く。
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
.ds { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-ui); -webkit-font-smoothing: antialiased; }
:where(.ds) a { color: inherit; text-decoration: none; }
:where(.ds) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.ds :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ds-container { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 var(--gutter); }
/* 画面いっぱいの帯（ヘッダー・フッター）の中身を .ds-container と同じ左右の線に揃える */
.ds { --edge: max(var(--gutter), calc((100% - var(--w-max)) / 2 + var(--gutter))); }

/* ---------- 縮み方の決まり：ボタン・タグ・リンク・ラベルは縮めない（折り返さない）。縮むのは画像・見出し・本文 ---------- */
.ds-btn__jp, .ds-btn__en, .ds-tag, .ds-chip, .ds-tab, .ds-back, .ds-steps__item, .ds-pager__item, .ds-count { white-space: nowrap; }
.ds-sec-head > .ds-link { flex: none; white-space: nowrap; }

/* ---------- 文字 ---------- */
.ds-link { text-decoration: underline; }
.ds-page-title { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-page); line-height: var(--lh-display); text-transform: uppercase; overflow-wrap: anywhere; }
.ds-lead { margin: 0; font-size: var(--fs-lead); line-height: var(--lh-body); text-wrap: pretty; }
.ds-label { font-family: var(--font-label); font-weight: var(--fw-label); font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--color-text-sub); }
.ds-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); }
.ds-sec-head__titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.ds-sec-head__en { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-section); line-height: 1; }
.ds-sec-head__jp { font-size: var(--fs-body-sm); font-weight: var(--fw-bold); }
.ds-sec-head--inner .ds-sec-head__en { font-size: var(--fs-section-inner); }
.ds-label--sm { font-size: var(--fs-label-sm); }
.ds-detail-title { margin: 0; font-size: var(--fs-detail-title); font-weight: var(--fw-bold); line-height: 1.5; text-wrap: pretty; }
.ds-text { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text-body); text-wrap: pretty; }
.ds-note { margin: 0; font-size: var(--fs-note); line-height: 1.7; color: var(--color-text-sub); text-wrap: pretty; }
/* 数字はすべて display 書体（価格・日付・時刻・数量・件数）。文中の数字は .ds-num で囲む */
.ds-num { font-family: var(--font-num); font-weight: var(--fw-display); letter-spacing: .01em; color: var(--color-text); }
.ds-num--md { font-size: 20px; line-height: 1.1; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-num--md { font-size: 22px; } }

/* ---------- ヘッダー ---------- */
.ds-header { position: sticky; top: 0; z-index: 80; height: var(--h-header); padding: 0 calc(var(--edge, var(--gutter)) - var(--space-3)) 0 var(--edge, var(--gutter)); display: flex; align-items: center; justify-content: space-between; background: var(--color-bg); color: var(--color-text); border-bottom: var(--bw-1) solid var(--color-line); }
.ds-header__logo { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-logo); line-height: 1; letter-spacing: .02em; transition: opacity var(--dur) ease; }
.ds-header__actions { display: flex; gap: var(--space-1); align-items: center; }
.ds-header--checkout .ds-header__actions { display: none; }
.ds-icon-btn { position: relative; width: var(--tap-min); height: var(--tap-min); display: flex; align-items: center; justify-content: center; transition: opacity var(--dur) ease; }
.ds-icon-btn svg { width: 24px; height: 24px; }
.ds-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: var(--color-on-accent); font-family: var(--font-num); font-weight: var(--fw-display); font-size: 13px; line-height: 1; }
.ds-count:empty, .ds-count[data-count="0"] { display: none; }


/* ---------- 戻りリンク（詳細ページのヘッダー下） ---------- */
.ds-back { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--color-text-sub); transition: opacity var(--dur) ease; }
.ds-back__arrow { font-family: var(--font-body); }
/* 進行の印。画像拡大の左右送りと同じ線のシェブロン。文字の → ← は使わない。外部へ移る印は SVG のアイコン（EV-02 のチケット購入ボタン） */
:root {
  --chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 4 10 16'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  --chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6 4 10 16'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
/* 文字の矢印の指定。シェブロンは下の :empty の要素だけに掛ける */
.ds-btn__arrow { font-family: var(--font-body); font-weight: var(--fw-label); font-size: 22px; transition: transform var(--dur) ease; }
.ds-row__arrow { font-family: var(--font-body); }
:is(.ds-btn__arrow, .ds-back__arrow, .ds-row__arrow, .cta-float__mark, .ds-chev):empty { --_m: var(--chev-r); display: inline-block; width: 8px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--_m) center / contain no-repeat; mask: var(--_m) center / contain no-repeat; }
.ds-back__arrow:empty, .ds-chev--left:empty { --_m: var(--chev-l); }
.ds-btn__arrow:empty { width: 9px; height: 16px; }
.ds-link:has(> .ds-chev) { display: inline-flex; align-items: center; gap: 6px; }
.ds-link > .ds-chev { width: 7px; height: 11px; }
.hero__cap .ds-chev { width: 9px; height: 15px; }
.menu__artist .ds-chev { width: 9px; height: 15px; }
.ds-pager__item[aria-label="前へ"], .ds-pager__item[aria-label="次へ"] { font-size: 0; }
.ds-pager__item[aria-label="前へ"]::before, .ds-pager__item[aria-label="次へ"]::before { content: ""; width: 8px; height: 14px; background: currentColor; -webkit-mask: var(--chev-r) center / contain no-repeat; mask: var(--chev-r) center / contain no-repeat; }
.ds-pager__item[aria-label="前へ"]::before { -webkit-mask-image: var(--chev-l); mask-image: var(--chev-l); }
@media (min-width: 768px) { html:not(.ds-mobile) .hero__cap .ds-chev { width: 11px; height: 18px; } }
.ds-back__current { color: var(--color-text); }

/* ---------- フッター ---------- */
.ds-footer { background: var(--color-bg); color: var(--color-text); border-top: var(--bw-1) solid var(--color-line); padding: 28px var(--edge, var(--gutter)); display: flex; flex-direction: column; gap: var(--space-5); }
.ds-footer__logo { min-width: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: min(var(--fs-footer-logo), 18vw); line-height: .85; }
.ds-footer__links li, .ds-footer__copy { white-space: nowrap; }
.ds-footer__side { display: flex; flex-direction: column; gap: var(--space-5); }
.ds-footer__links { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); font-size: var(--fs-caption); }
.ds-footer__copy { font-family: var(--font-label); font-size: var(--fs-label); color: var(--color-text-muted); }
.ds-footer--lite { padding: var(--space-5) var(--edge, var(--gutter)); gap: 10px; }
.ds-footer--lite .ds-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-footer { padding: var(--space-8) var(--edge, var(--gutter)); flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--space-8); }
  html:not(.ds-mobile) .ds-footer__logo { flex: none; font-size: clamp(64px, 8vw, var(--fs-footer-logo)); }
  html:not(.ds-mobile) .ds-footer__side { flex: 1 1 0; min-width: 0; align-items: flex-end; gap: var(--space-5); }
  html:not(.ds-mobile) .ds-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; font-size: var(--fs-body-sm); }
  html:not(.ds-mobile) .ds-footer__copy { font-size: var(--fs-caption); }
  html:not(.ds-mobile) .ds-footer--lite { padding: var(--space-5) var(--edge, var(--gutter)); align-items: center; }
}

/* ---------- 主ボタン（CTA） ---------- */
.ds-btn { --_bg: var(--color-cta-bg); --_fg: var(--color-cta-fg); --_bgh: var(--color-cta-bg-hover);
  position: relative; width: 100%; height: var(--h-cta); padding: 0 var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  background: var(--_bg); color: var(--_fg); clip-path: var(--shape-cta); border-radius: var(--radius-ui); cursor: pointer; text-align: left; transition: background var(--dur) ease; }
.ds-btn--on-light { --_bg: var(--color-cta-light-bg); --_fg: var(--color-cta-light-fg); --_bgh: var(--color-cta-light-bg-hover); }
.ds-btn__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-btn__en { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-cta-en); line-height: 1; letter-spacing: .04em; }
.ds-btn__jp { font-size: var(--fs-cta-jp); font-weight: var(--fw-bold); }
/* アイコン付き（--icon）：左にアイコン、右に件数の札とシェブロン。.ds-btn__main と .ds-btn__end で左右をまとめる */
.ds-btn--icon { gap: var(--space-3); }
.ds-btn__main, .ds-btn__end { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ds-btn__end { flex: none; gap: var(--space-3); }
.ds-btn__ic { flex: none; width: 30px; height: 30px; }
.ds-btn:disabled, .ds-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* 詳細を読み進めて主ボタンが画面の上に出たとき、右下から戻す。操作（枚数・色・サイズ）は持たない */
.cta-dock { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; align-items: center; height: calc(var(--tap-min) + var(--space-3) * 2 + env(safe-area-inset-bottom)); padding: 0 var(--gutter) env(safe-area-inset-bottom); pointer-events: none; }
.cta-dock[hidden] { display: none; }
.cta-veil { position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--color-bg) 68%, transparent); border-top: 1px solid color-mix(in srgb, var(--p-paper) 28%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.cta-float { --_cut: 10px; position: relative; z-index: 1; pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; height: var(--tap-min); padding: 0 16px 0 18px; border: 0; background-color: var(--color-accent); color: var(--color-on-accent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--_cut)), calc(100% - var(--_cut) * 1.2) 100%, 0 100%); font: inherit; font-size: var(--fs-body-sm); font-weight: var(--fw-bold); cursor: pointer; }
[data-cta-block] { scroll-margin-top: calc(var(--h-header) + var(--space-3)); }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-btn { padding: 0 22px; } }

/* ---------- 二番手ボタン（枠線） ---------- */
.ds-btn-2 { --_c: var(--color-text); --_h: var(--color-hover-on-dark);
  min-height: var(--h-btn-2); padding: 0 var(--space-4); display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: var(--bw-2) solid var(--_c); color: var(--_c); border-radius: var(--radius-ui); font-size: var(--fs-body); font-weight: var(--fw-bold); cursor: pointer; transition: background var(--dur) ease; }
.ds-btn-2--on-light { --_c: var(--color-on-surface); --_h: var(--color-hover-on-light); }
.ds-btn-2--split { justify-content: space-between; }
.ds-btn-2--fill { background: var(--_c); color: var(--color-bg); }
.ds-btn-2:disabled, .ds-btn-2[aria-disabled="true"] { --_c: var(--color-line); color: var(--color-placeholder); pointer-events: none; }
/* 受取可能な店舗。店名と在庫が先、住所以下は補足 */
.pickup-stores { display: flex; flex-direction: column; gap: var(--space-8); }
.pickup-store { display: flex; flex-direction: column; gap: var(--space-2); }
.pickup-store__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.pickup-store__name { min-width: 0; font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: 1.4; }
.pickup-store__head .ds-tag { flex: none; }
.pickup-store .ds-kv--lined { font-size: var(--fs-caption); }
.pickup-store .ds-kv--lined dt,
.pickup-store .ds-kv--lined dd { padding: var(--space-2) 0; }
.pickup-store .ds-kv--lined dd { font-weight: var(--fw-body); }
.pickup-store .venue-map { display: inline; font-size: inherit; font-weight: inherit; line-height: inherit; }
.pickup-store .venue-map svg { display: inline-block; vertical-align: -2px; margin-left: 4px; }
.pickup-store__tel { font-weight: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* モバイルは下から出るシート。PCは画面の中央。他のモーダルは上から */
#stores.ds-modal { align-items: flex-end; padding: 0; }
#stores .ds-modal__panel { max-width: none; max-height: 80vh; border-bottom: 0; }
@media (min-width: 768px) {
  html:not(.ds-mobile) #stores.ds-modal { align-items: center; padding: var(--space-8) var(--gutter); }
  html:not(.ds-mobile) #stores .ds-modal__panel { max-width: 520px; max-height: calc(100vh - var(--space-8) * 2); border-bottom: var(--bw-1) solid var(--color-line); }
  html:not(.ds-mobile) .pickup-store .ds-kv--lined { font-size: var(--fs-caption); }
}

/* ---------- テキストリンク ---------- */
.ds-link { font-size: var(--fs-caption); font-weight: var(--fw-bold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; transition: text-decoration-thickness var(--dur) ease, text-decoration-color var(--dur) ease; }
.ds-link--quiet { text-decoration-color: transparent; }
/* 文の外に1つで置くリンクは、文字が小さく押しにくい。見た目の位置は変えずに、押せる範囲だけ広げる */
:is(.ds-sec-head, .ds-line__ops, .row-between) > .ds-link { padding: 8px; margin: -8px; }

/* ---------- 入会フロートボタン（特別ボタン） ---------- */
.ds-fab { position: fixed; right: var(--fab-right); bottom: var(--fab-bottom); z-index: 50; display: block; cursor: pointer; transition: opacity var(--dur-reveal) ease, transform var(--dur-reveal) var(--ease); }
.ds-fab--static { position: relative; right: auto; bottom: auto; display: inline-block; align-self: flex-start; }
.ds-fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; transition-duration: .15s; }
.ds-fab__inner { position: relative; display: block; transition: transform var(--dur) var(--ease); }
.ds-fab__glow { position: absolute; left: 8%; right: 8%; top: 30%; bottom: -6px; overflow: hidden; filter: blur(14px); opacity: .75; }
.ds-fab__frame { position: relative; display: block; height: var(--h-fab); padding: var(--fab-border); overflow: hidden; clip-path: var(--shape-fab); }
.ds-fab__body { position: relative; height: 100%; padding: 0 var(--fab-pad-x); display: flex; align-items: center; overflow: hidden; background: var(--color-bg); clip-path: var(--shape-fab); }
.ds-fab__tint { position: absolute; inset: 0; overflow: hidden; opacity: .16; }
/* 虹は背景の位置ではなく帯を transform で流す。背景の位置を動かすと、止まっていても毎フレーム描き直しになる */
.ds-fab__glow::before, .ds-fab__frame::before, .ds-fab__tint::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: var(--rainbow); background-size: 50% 100%; animation: ds-flow 6s linear infinite; }
.ds-fab__sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(241, 239, 234, .35), transparent); animation: ds-sheen 4.5s ease-in-out infinite; }
.ds-fab__label { position: relative; font-size: var(--fs-fab); font-weight: var(--fw-bold); letter-spacing: .12em; white-space: nowrap; background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes ds-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ds-sheen { 0%, 62% { transform: translateX(-120%) skewX(-20deg); } 82%, 100% { transform: translateX(260%) skewX(-20deg); } }

/* ---------- 購入の手順 ---------- */
.ds-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-1); }
.ds-steps__item { height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; border: var(--bw-1) solid var(--color-line); color: var(--color-text-muted); font-size: var(--fs-label); font-weight: var(--fw-bold); white-space: nowrap; }
.ds-steps__no { font-family: var(--font-num); font-weight: var(--fw-display); font-size: 15px; }
.ds-steps__item.is-done { color: var(--color-text-sub); }
.ds-steps__item.is-current { background: var(--color-surface); border-color: var(--color-surface); color: var(--color-on-surface); }

/* ---------- タブ（箱型・発車標のタイル）：英字＋日本語。選択中は紙色＋上にアクセントの線。--icon＝アイコン付き（Mobile 2列） ---------- */
.ds-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-1); }
.ds-tab { position: relative; min-height: var(--h-tab); padding: 6px var(--space-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--flap-bg); color: var(--color-text); text-align: center; cursor: pointer; transition: opacity var(--dur) ease; }
.ds-tab::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--flap-split-width); background: var(--flap-split); pointer-events: none; }
.ds-tab.is-active { background: var(--color-surface); color: var(--color-on-surface); box-shadow: inset 0 4px 0 var(--color-accent); }
.ds-tab.is-active::after { background: var(--color-line-on-surface); opacity: .5; }
.ds-tab__en { font-family: var(--font-label); font-weight: var(--fw-label); font-size: var(--fs-label-sm); letter-spacing: .06em; color: var(--color-text-muted); }
.ds-tab.is-active .ds-tab__en { color: var(--color-on-surface-sub); }
.ds-tab__jp { font-size: var(--fs-body-sm); font-weight: var(--fw-bold); white-space: nowrap; }
.ds-tabs--icon { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-tabs--icon .ds-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ds-tabs--icon .ds-tab { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px var(--space-3); text-align: left; }
.ds-tabs--icon .ds-tab::after { display: none; }
.ds-tab__ic { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: var(--bw-1) solid var(--color-border); }
.ds-tab__ic svg { width: 16px; height: 16px; }
.ds-tab.is-active .ds-tab__ic { border-color: var(--color-on-surface); }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-tab__jp { font-size: var(--fs-body); }
  html:not(.ds-mobile) .ds-tabs--icon { grid-auto-flow: column; grid-template-columns: none; gap: 6px; }
  html:not(.ds-mobile) .ds-tabs--icon .ds-tab:last-child:nth-child(odd) { grid-column: auto; }
  html:not(.ds-mobile) .ds-tabs--icon .ds-tab { padding: 8px 14px; }
}

/* ---------- チップ（絞り込み・並び替え・切替） ---------- */
.ds-chips { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.ds-chips::-webkit-scrollbar { display: none; }
.ds-chip { flex: none; height: var(--h-chip); padding: 0 14px; display: inline-flex; align-items: center; white-space: nowrap; border: var(--bw-1) solid var(--color-border); font-size: var(--fs-body-sm); font-weight: var(--fw-bold); cursor: pointer; transition: opacity var(--dur) ease; }
.ds-chip.is-selected { background: var(--color-surface); border-color: var(--color-surface); color: var(--color-on-surface); }
.ds-chip--sm { height: 32px; padding: 0 10px; font-size: var(--fs-caption); }
.ds-chip--out { position: relative; overflow: hidden; color: var(--color-text-sub); background: var(--color-line); border-color: var(--color-line); cursor: not-allowed; }
.ds-chip--out::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--color-text-sub) calc(50% - .5px), var(--color-text-sub) calc(50% + .5px), transparent calc(50% + .5px)); pointer-events: none; }

/* ---------- 数量 ---------- */
.ds-qty { align-self: flex-start; display: inline-grid; grid-template-columns: var(--tap-min) 40px var(--tap-min); height: var(--tap-min); border: var(--bw-1) solid var(--color-border); }
.ds-qty__btn { display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 18px; cursor: pointer; transition: opacity var(--dur) ease; }
.ds-qty__btn:disabled { opacity: .3; pointer-events: none; }
.ds-qty__val { display: flex; align-items: center; justify-content: center; border-inline: var(--bw-1) solid var(--color-border); font-family: var(--font-num); font-weight: var(--fw-display); font-size: 20px; }

/* ---------- 券（チケットのモチーフ） ---------- */
.ds-ticket { --_notch: var(--ticket-notch-color, var(--color-bg)); background: var(--color-surface); color: var(--color-on-surface); border-radius: var(--radius-ticket); display: flex; flex-direction: column; }
.ds-ticket__part { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.ds-ticket__perf { position: relative; height: 0; margin: 0 calc(var(--ticket-notch) / 2 + 1px); border-top: var(--ticket-perf-width) var(--ticket-perf-style) var(--color-on-surface); }
/* 横に並んだ券は、上の文章の長さでミシン目とボタンが上がらない。余白はミシン目より上に入る */
.ds-ticket > .ds-ticket__perf { margin-top: auto; }
.ds-ticket__perf::before, .ds-ticket__perf::after { content: ""; position: absolute; top: calc(var(--ticket-notch) / -2 - var(--ticket-perf-width) / 2); width: var(--ticket-notch); height: var(--ticket-notch); border-radius: 50%; background: var(--_notch); }
.ds-ticket__perf::before { left: calc((var(--ticket-notch) + 1px) * -1); }
.ds-ticket__perf::after { right: calc((var(--ticket-notch) + 1px) * -1); }
/* 横長の券（PC）：左＝情報、縦のミシン目、右＝金額とボタン（幅 --ticket-h-side）。Mobile は縦の券のまま */
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-ticket--h { flex-direction: row; }
  html:not(.ds-mobile) .ds-ticket--h > .ds-ticket__part:first-child { flex: 1 1 auto; min-width: 0; }
  html:not(.ds-mobile) .ds-ticket--h > .ds-ticket__part:last-child { flex: none; width: var(--ticket-h-side); }
  html:not(.ds-mobile) .ds-ticket--h > .ds-ticket__perf { height: auto; margin: calc(var(--ticket-notch) / 2 + 1px) 0; border-top: 0; border-left: var(--ticket-perf-width) var(--ticket-perf-style) var(--color-on-surface); }
  html:not(.ds-mobile) .ds-ticket--h > .ds-ticket__perf::before, html:not(.ds-mobile) .ds-ticket--h > .ds-ticket__perf::after { left: calc(var(--ticket-notch) / -2 - var(--ticket-perf-width) / 2); right: auto; }
  html:not(.ds-mobile) .ds-ticket--h > .ds-ticket__perf::before { top: calc((var(--ticket-notch) + 1px) * -1); }
  html:not(.ds-mobile) .ds-ticket--h > .ds-ticket__perf::after { top: auto; bottom: calc((var(--ticket-notch) + 1px) * -1); }
}
.ds-ticket__title { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-section-inner); line-height: .9; }
.ds-ticket__name { font-size: 15px; font-weight: var(--fw-bold); line-height: 1.5; text-wrap: pretty; }
.ds-kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px var(--space-3); margin: 0; font-size: var(--fs-body-sm); line-height: 1.6; }
.ds-kv dt { color: var(--color-text-sub); }
.ds-kv dd { margin: 0; min-width: 0; font-weight: var(--fw-bold); overflow-wrap: anywhere; }
.ds-kv dd:has(.ds-yen) { text-align: right; }
/* 線で区切った表（詳細ページの基本情報など） */
.ds-kv--lined { gap: 0; border-top: var(--bw-1) solid var(--color-line); font-size: var(--fs-body); }
.ds-kv--lined dt, .ds-kv--lined dd { padding: var(--space-3) 0; border-bottom: var(--bw-1) solid var(--color-line); }
.ds-kv--lined dt { padding-right: var(--space-3); font-size: var(--fs-caption); }
.ds-kv--lined .ds-num { font-size: 20px; line-height: 1.1; }
/* 項目名が長く、値が文章になる表（特定商取引法に基づく表記）。Mobile は項目名を上に、PC は左の列を広げる。値は太字にしない */
.ds-kv--wide { grid-template-columns: minmax(0, 1fr); }
.ds-kv--wide dt { padding-bottom: 0; border-bottom: 0; font-size: var(--fs-body-sm); font-weight: var(--fw-bold); }
.ds-kv--wide dd { padding-top: 4px; font-weight: var(--fw-body); line-height: var(--lh-body); }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-kv--wide { grid-template-columns: 200px minmax(0, 1fr); }
  html:not(.ds-mobile) .ds-kv--wide dt, html:not(.ds-mobile) .ds-kv--wide dd { padding: var(--space-4) 0; border-bottom: var(--bw-1) solid var(--color-line); }
  html:not(.ds-mobile) .ds-kv--wide dt { padding-right: var(--space-4); }
}
/* 販売期間と残り時間は1つ。終わりの日時だけでも残り時間を付ける。
   幅の広い案内ではラベルの右に左揃え。購入券の中だけ右端で揃える */
.ds-period { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.ds-period > .ds-kv dd { text-align: left; overflow-wrap: normal; }
.ds-period > .ds-kv dd .ds-num { font-size: 18px; line-height: 1.2; white-space: nowrap; }
.ds-period__remain { margin: 0 0 0 calc(84px + var(--space-3)); text-align: left; font-size: var(--fs-body-sm); font-weight: var(--fw-bold); line-height: 1.4; color: var(--color-text-sub); }
.ds-period__remain .ds-num { font-size: inherit; color: var(--color-text); }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-period > .ds-kv { grid-template-columns: 130px minmax(0, 1fr); gap: 6px 0; }
  html:not(.ds-mobile) .ds-period__remain { margin-left: 130px; }
}
.ds-ticket .ds-period > .ds-kv { gap: 6px var(--space-3); }
.ds-ticket .ds-period > .ds-kv dd { text-align: right; }
.ds-ticket .ds-period__remain { margin-left: 0; text-align: right; }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-ticket .ds-period > .ds-kv { grid-template-columns: 84px minmax(0, 1fr); gap: 6px var(--space-3); }
  html:not(.ds-mobile) .ds-ticket .ds-period__remain { margin-left: 0; }
}
.ds-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.ds-total__label { font-size: var(--fs-body-sm); font-weight: var(--fw-bold); }
.ds-total__value { font-family: var(--font-num); font-weight: var(--fw-display); font-size: var(--fs-total); line-height: 1; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-ticket__part { padding: var(--space-6); } html:not(.ds-mobile) .ds-kv--lined { grid-template-columns: 130px minmax(0, 1fr); font-size: 16px; } html:not(.ds-mobile) .ds-ticket__name { font-size: 16px; } }

/* ---------- 商品の行（カート・注文の要約・注文履歴）：画像｜商品名・仕様｜価格。アーティスト名は置かない。数量と削除は __ops（カートだけ）。--sm＝要約用の小さい行 ---------- */
.ds-lines { display: flex; flex-direction: column; }
.ds-line { display: grid; grid-template-columns: var(--line-img) minmax(0, 1fr) auto; gap: 6px var(--space-3); align-items: center; padding: var(--space-4) 0; border-top: var(--bw-1) solid var(--color-line); }
.ds-line:has(> .ds-line__hit) { position: relative; }
.ds-line__hit { position: absolute; inset: 0; z-index: 1; }
.ds-line > .ds-media { width: var(--line-img); }
.ds-line__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ds-line__name { font-size: var(--fs-body-sm); font-weight: var(--fw-bold); line-height: 1.5; text-wrap: pretty; }
.ds-line__body .ds-card__tags { margin-top: 2px; }
.ds-line > .ds-num { white-space: nowrap; }
.ds-line__end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; text-align: right; }
.ds-line__ops { position: relative; z-index: 2; grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ds-line:has(> .ds-line__ops) { align-items: start; }
.ds-line:has(> .ds-line__ops) > .ds-media { grid-row: 1 / span 2; align-self: start; }
.ds-line:has(.ds-line__body > .ds-label) { align-items: start; }
.ds-line:has(.ds-line__body > .ds-label) > .ds-media,
.ds-line:has(.ds-line__body > .ds-label) > .ds-rarity { grid-row: auto; align-self: start; }
.ds-line--sm { --line-img: 44px; padding: var(--space-3) 0; }
.ds-line--sm .ds-line__name { font-size: var(--fs-caption); }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-line__name { font-size: var(--fs-body); } html:not(.ds-mobile) .ds-line--sm { --line-img: 48px; } html:not(.ds-mobile) .ds-line--sm .ds-line__name { font-size: var(--fs-body-sm); } }

/* ---------- 受取QR（白地に黒。画像は ecforce が発行したものを入れる） ---------- */
.ds-qr { position: relative; flex: none; width: var(--qr-size); aspect-ratio: 1 / 1; padding: 8px; background: var(--color-qr-bg); border: var(--bw-1) solid var(--color-qr-fg); }
.ds-qr img { display: block; width: 100%; height: 100%; }
.ds-qr--lg { width: min(var(--qr-size-lg), 100%); align-self: center; }
.ds-qr:empty::before { content: "QR"; position: absolute; inset: 8px; display: flex; align-items: center; justify-content: center; background: var(--media-placeholder); font-family: var(--font-label); font-size: var(--fs-label); color: var(--color-qr-fg); }

/* ---------- 本文＋右の欄（PC）：Mobile は縦に積む。__sticky＝右の欄をスクロールに追随させる。--aside-first＝Mobile で右の欄を先に出す（購入手続きの金額） ---------- */
.ds-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-split { grid-template-columns: minmax(0, 1fr) var(--split-aside); gap: clamp(28px, 3vw, 48px); align-items: start; }
  html:not(.ds-mobile) .ds-split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  html:not(.ds-mobile) .ds-split--aside-first > :first-child { order: 2; }
  html:not(.ds-mobile) .ds-split--aside-left { grid-template-columns: var(--split-aside) minmax(0, 1fr); }
  html:not(.ds-mobile) .ds-split > * { min-width: 0; }
  html:not(.ds-mobile) .ds-split__sticky { position: sticky; top: calc(var(--h-header) + var(--space-5)); }
}

/* ---------- 画像拡大（[data-zoom="グループ名"] を付けた画像をタップ → 全画面で拡大。左右送りで同じグループの別の画像も見られる）---------- */
[data-zoom] { cursor: zoom-in; }
.ds-lightbox { position: fixed; inset: 0; z-index: 110; display: none; flex-direction: column; background: var(--color-bg); color: var(--color-text); }
.ds-lightbox.is-open { display: flex; }
.ds-lightbox__bar { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); height: 56px; padding: 0 var(--gutter); }
.ds-lightbox__count { position: absolute; z-index: 2; right: var(--space-3); pointer-events: none; }
.ds-lightbox__track { flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ds-lightbox__track::-webkit-scrollbar { display: none; }
.ds-lightbox__slide { flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; padding: 0 var(--gutter) var(--space-4); }
.ds-lightbox__slide > * { cursor: default; max-width: 100%; max-height: 100%; }
.ds-lightbox__slide { touch-action: pan-x; user-select: none; -webkit-user-select: none; }
.ds-lightbox.is-zoomed .ds-lightbox__track { overflow-x: hidden; }
.ds-lightbox.is-zoomed .ds-lightbox__slide { touch-action: none; }
.ds-lightbox.is-zoomed .ds-lightbox__slide > * { cursor: grab; }
.ds-lightbox__slide > .ds-media { width: min(100%, calc(100dvh - 140px)); }
.ds-lightbox__slide > img { width: auto; height: auto; object-fit: contain; }
.ds-lightbox__nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); background: color-mix(in srgb, var(--p-gray-5) 72%, transparent); }
.ds-lightbox__nav[data-dir="-1"] { left: var(--gutter); }
.ds-lightbox__nav[data-dir="1"] { right: var(--gutter); }
.ds-lightbox__nav:disabled { opacity: .3; cursor: default; }
.ds-lightbox__nav[hidden] { display: none; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-lightbox__slide { padding-bottom: var(--space-6); } }

/* ---------- 会員証（MEMBER PASSPORT）：黒い金属の面に銀の箔の名前・縞。背景の MOMENT は削り出し。幅 340px・比率 340:226 で固定。印は右下。[data-tilt] で傾きと光が動く。data-tier で面・箔・縁が変わる ---------- */
.ds-pass { width: 340px; flex: none; aspect-ratio: 340 / 226; --_rx: 0deg; --_ry: 0deg; --_gx: 50%; --_gy: 50%; position: relative; overflow: hidden; display: block; background: conic-gradient(from 200deg at 28% 12%, var(--pass-base) 0deg, var(--pass-base-deep) 50deg, #2A2826 95deg, var(--pass-base-deep) 150deg, var(--pass-base) 230deg, #2A2826 290deg, var(--pass-base) 360deg); color: var(--color-text); border: var(--bw-1) solid var(--color-line); border-radius: var(--radius-pass); box-shadow: inset 0 1px 0 var(--pass-edge), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 18px 36px -12px rgba(0, 0, 0, .8), var(--shadow-modal); transform: perspective(1200px) rotateX(var(--_rx)) rotateY(var(--_ry)); transition: transform .6s var(--ease); touch-action: pan-y; }
.ds-pass.is-tilt { transition: none; }
.ds-pass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 7px), linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%); }
.ds-pass::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--pass-edge); border-radius: calc(var(--radius-pass) - 4px); opacity: .35; pointer-events: none; }
.ds-pass__logo { position: absolute; left: 18px; top: 18px; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 70px; line-height: .78; letter-spacing: .02em; color: rgba(0, 0, 0, .3); text-shadow: 0 1px 0 rgba(255, 255, 255, .1), 0 -1px 0 rgba(0, 0, 0, .4); white-space: nowrap; pointer-events: none; }
.ds-pass__glare { position: absolute; inset: 0; pointer-events: none; opacity: .4; transition: opacity .5s ease; background: radial-gradient(circle at var(--_gx) var(--_gy), rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 42%); mix-blend-mode: screen; }
.ds-pass__glare::after { content: ""; position: absolute; inset: 0; background: var(--rainbow); opacity: .14; -webkit-mask-image: linear-gradient(105deg, transparent calc(var(--_gx) - 34%), #000 var(--_gx), transparent calc(var(--_gx) + 34%)); mask-image: linear-gradient(105deg, transparent calc(var(--_gx) - 34%), #000 var(--_gx), transparent calc(var(--_gx) + 34%)); }
.ds-pass.is-tilt .ds-pass__glare { opacity: 1; }
.ds-pass__body { position: relative; height: 100%; padding: 20px 22px 0 22px; display: flex; flex-direction: column; gap: var(--space-3); }
.ds-pass__label { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-label); font-weight: var(--fw-label); font-size: var(--fs-label); letter-spacing: .16em; white-space: nowrap; }
.ds-pass__label, .ds-pass__name, .ds-pass__name small { background: var(--pass-foil); background-size: 240% 100%; background-position: var(--_gx) 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .7)); }
.ds-pass__name { margin-top: 78px; font-size: 20px; font-weight: var(--fw-bold); line-height: 1.3; overflow-wrap: anywhere; max-height: 3.9em; overflow: hidden; }
.ds-pass__name small { font-size: 13px; }
.ds-pass__bars { display: block; height: 24px; width: 54%; margin-top: auto; margin-bottom: 18px; background: var(--pass-foil); background-size: 240% 100%; background-position: var(--_gx) 0; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px, #000 5px 6px, transparent 6px 10px, #000 10px 13px, transparent 13px 15px, #000 15px 16px, transparent 16px 19px); mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px, #000 5px 6px, transparent 6px 10px, #000 10px 13px, transparent 13px 15px, #000 15px 16px, transparent 16px 19px); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .7)); }
.ds-pass[data-tier="gold"] { --pass-base: var(--pass-base-gold); --pass-foil: var(--pass-foil-gold); --pass-edge: var(--pass-edge-gold); }
.ds-pass[data-tier="rainbow"] { --pass-foil: var(--rainbow); --pass-edge: rgba(255, 255, 255, .45); }
.ds-pass .ds-pass__stamp { position: absolute; right: 18px; bottom: 16px; z-index: 2; --stamp-size: var(--pass-stamp); --stamp-delay: .6s; }
.ds-pass .ds-dot { background: var(--pass-foil); width: 8px; height: 8px; border-radius: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .7); }
/* 340×226 の絵を、文字・縞・印ごと同じ倍率で拡大する。最大 400px。狭い画面では親の幅に収める */
.ds-pass-scale { position: relative; width: min(100%, 400px); aspect-ratio: 340 / 226; container-type: inline-size; margin-inline: 0; }
.ds-pass-scale > .ds-pass { position: absolute; left: 50%; top: 50%; width: 340px; height: 226px; --pass-stamp: 106px; --pass-s: calc(100cqi / 340px); transform: translate(-50%, -50%) scale(var(--pass-s)) perspective(1200px) rotateX(var(--_rx)) rotateY(var(--_ry)); }

/* ---------- パタパタ文字（発車標のモチーフ） ---------- */
.ds-flap { display: inline-flex; flex-wrap: wrap; gap: var(--flap-gap); }
.ds-flap__tile { position: relative; width: var(--flap-w); height: var(--flap-h); display: flex; align-items: center; justify-content: center; background: var(--flap-bg); color: var(--flap-fg); font-family: var(--flap-font); font-weight: var(--fw-display); font-size: var(--flap-fs); line-height: 1; }
.ds-flap__tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--flap-split-width); background: var(--flap-split); }
.ds-flap__tile--space { background: transparent; }
.ds-flap__tile--space::after { display: none; }
.ds-flap--lg { --flap-w: 52px; --flap-h: 72px; --flap-fs: 58px; --flap-gap: 4px; }
.ds-flap--paper { --flap-bg: var(--color-surface); --flap-fg: var(--color-on-surface); }

/* ---------- 画像の枠 ---------- */
.ds-media { flex: none; position: relative; overflow: hidden; aspect-ratio: var(--_r, var(--ratio-product)); background: var(--media-placeholder); }
.ds-media--hero { --_r: var(--ratio-hero); }
.ds-media--artist { --_r: var(--ratio-artist); }
.ds-media--product { --_r: var(--ratio-product); }
.ds-media--event { --_r: var(--ratio-event); }
.ds-media--kuji { --_r: var(--ratio-kuji); }
.ds-media--prize { --_r: var(--ratio-prize); }
.ds-media--pack { --_r: var(--ratio-pack); }
.ds-media--card { --_r: var(--ratio-card); }
.ds-media--map { --_r: var(--ratio-map); }
.ds-media--cover { --_r: var(--ratio-cover); }
.ds-media--news { --_r: var(--ratio-news); }
.ds-media--perk { --_r: var(--ratio-perk); }
.ds-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-media) var(--ease); }
.ds-media__note { position: absolute; left: var(--space-2); bottom: var(--space-2); font-family: var(--font-label); font-size: var(--fs-label-sm); color: var(--color-text-muted); }
.ds-media__badge { position: absolute; top: var(--space-2); left: var(--space-2); }

/* ---------- カード（画像あり：商品・くじ・イベント・ニュース） ---------- */
.ds-card { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; cursor: pointer; }
.ds-card__tags { display: flex; gap: var(--space-1); flex-wrap: wrap; }
/* タグの無いカードも .ds-card__tags を空で置く。同じ並びに1枚でもタグがあれば、空の行もタグ1段の高さを取る */
.ds-card__tags:empty { display: none; }
:is(.ds-cards, .ds-rail):has(.ds-card__tags:not(:empty)) .ds-card__tags:empty { display: flex; min-height: 22px; }
/* カードの名前は商品・イベント・くじで共通（触れると下線）。違うのは大きさだけ */
.ds-card__title, .ds-ev__title, .ds-kuji__title { font-weight: var(--fw-bold); line-height: var(--lh-ui); text-wrap: pretty; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color .3s ease; }
.ds-card__title { font-size: var(--fs-body-sm); }
.ds-card__price { font-family: var(--font-num); font-weight: var(--fw-display); font-size: var(--fs-price); line-height: 1; }
.ds-card__tax, .ds-total__value .ds-card__tax { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-label); letter-spacing: 0; color: var(--color-text-sub); white-space: nowrap; }
/* カートのおすすめのように最後にボタンを置くときは、名前の行数が違ってもボタンを下に揃える */
.ds-card > .ds-btn-2 { margin-top: auto; }
.ds-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--space-3); }
.ds-rail { display: flex; gap: var(--space-3); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.ds-rail::-webkit-scrollbar { display: none; }
.ds-rail > * { flex: none; width: 150px; }
.ds-rail--lg > * { width: 236px; }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-7) var(--space-4); }
  html:not(.ds-mobile) .ds-card__title { font-size: var(--fs-body); }
  html:not(.ds-mobile) .ds-rail > * { width: 220px; }
  html:not(.ds-mobile) .ds-rail--lg > * { width: 236px; }
}

@media (min-width: 1024px) { html:not(.ds-mobile) .ds-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { html:not(.ds-mobile) .ds-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* .ds-rail--row も .ds-rail と同じ横スクロール。幅で枚数を減らさない */
/* 横長（16:9・券）の格子：Mobile 1列 → 768px〜2列 → 1024px〜3列。くじ券・整理券・ニュースのカード */
.ds-cards--wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-cards--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 1024px) { html:not(.ds-mobile) .ds-cards--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 物として見せるもの（パスポート・BOX・画像のない券）＝浮く ---------- */
.ds-lift { cursor: pointer; transition: transform .25s var(--ease); }

/* ---------- タグ・状態 ---------- */
.ds-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: var(--bw-1) solid currentColor; font-size: var(--fs-label); font-weight: var(--fw-bold); white-space: nowrap; }
.ds-tag { gap: .3em; }
.ds-tag--accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
/* 終了・0（点線の枠。数字に取り消し線） */
.ds-tag .ds-num { color: inherit; font-size: inherit; }
.ds-tag--out { border-style: dashed; color: var(--color-text-muted); }
.ds-tag--out .ds-num { text-decoration: line-through; }
.ds-tag--solid { background: var(--color-text); border-color: var(--color-text); color: var(--color-text-inverse); }
.ds-dot { display: inline-block; width: 8px; height: 8px; background: var(--color-accent); }

/* ---------- リスト行（ニュースなど文字だけの行）：日付（数字）＋種別｜タイトル ---------- */
.ds-list { border-bottom: var(--bw-1) solid var(--color-line); }
.ds-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-top: var(--bw-1) solid var(--color-line); cursor: pointer; transition: background-color var(--dur) ease; }
.ds-row__date { display: flex; flex-direction: column; gap: 4px; }
.ds-row__day { font-family: var(--font-num); font-weight: var(--fw-display); font-size: 18px; line-height: 1; letter-spacing: .01em; }
.ds-row__sub { font-family: var(--font-label); font-weight: var(--fw-label); font-size: var(--fs-label-sm); letter-spacing: var(--ls-label); color: var(--color-text-sub); }
.ds-row__title { min-width: 0; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.6; text-wrap: pretty; }
.ds-row__arrow { font-family: var(--font-body); }
.ds-row.is-ended { opacity: .45; cursor: default; }
/* メニューの行（マイページ）：英字の見出し＋日本語、下に補足1行、右にシェブロン（外部は外部リンクの SVG アイコン）。日付の列はない */
.ds-row.ds-row--nav { grid-template-columns: minmax(0, 1fr) auto; min-height: 80px; padding: 14px 0; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-row.ds-row--nav { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0; } }
.ds-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ds-row__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ds-row__en { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 28px; line-height: .9; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-row { grid-template-columns: 120px minmax(0, 1fr) auto; padding: var(--space-5) 0; } html:not(.ds-mobile) .ds-row__day { font-size: 20px; } html:not(.ds-mobile) .ds-row__title { font-size: 15px; } }
/* ニュースの行：一番左はその記事のアイキャッチ（16:9）。日付と種別は横並び。スマホは画像の右にそれを置き、見出しはその下。右の印は付けない */
.ds-row:has(> .ds-media) { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "media date" "media title"; row-gap: var(--space-2); align-content: center; }
.ds-row > .ds-media { grid-area: media; width: 96px; }
.ds-row:has(> .ds-media) > .ds-row__date { grid-area: date; flex-direction: row; align-items: baseline; gap: 8px; white-space: nowrap; }
.ds-row:has(> .ds-media) .ds-row__day { font-size: 15px; }
.ds-row:has(> .ds-media) > .ds-row__title { grid-area: title; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-row:has(> .ds-media) { grid-template-columns: 120px 156px minmax(0, 1fr); grid-template-areas: "media date title"; row-gap: 0; } html:not(.ds-mobile) .ds-row > .ds-media { width: 120px; } html:not(.ds-mobile) .ds-row:has(> .ds-media) .ds-row__day { font-size: 20px; } }

/* ---------- イベント（発車標の行）：.ds-ev＝カード（縦）、.ds-ev--row＝行（画像｜情報）。違うのは並びの向きだけ ---------- */
.ds-ev { display: grid; gap: 14px; align-content: start; min-width: 0; cursor: pointer; }
.ds-ev__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ds-ev__head { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 10px; border-bottom: var(--bw-1) solid var(--color-line); }
.ds-ev__date { font-family: var(--font-num); font-weight: var(--fw-display); font-size: 40px; line-height: .78; white-space: nowrap; }
.ds-ev__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.3; letter-spacing: var(--ls-label); color: var(--color-text-sub); }
.ds-ev__meta b { font-weight: var(--fw-label); color: var(--color-text); }
.ds-ev__title { font-size: 15px; }
.ds-evs { border-bottom: var(--bw-1) solid var(--color-line); }
.ds-ev--row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; padding: var(--space-4) 0; border-top: var(--bw-1) solid var(--color-line); }
.ds-ev--row .ds-ev__body { gap: 8px; }
.ds-ev--row .ds-ev__head { gap: 10px; padding-bottom: 8px; }
.ds-ev--row .ds-ev__date { font-size: 30px; }
.ds-ev--row .ds-ev__meta { font-size: var(--fs-label-sm); }
.ds-ev--row .ds-ev__title { font-size: 14px; }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-ev__date { font-size: 44px; }
  html:not(.ds-mobile) .ds-ev__title { font-size: 16px; }
  html:not(.ds-mobile) .ds-ev--row { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; padding: var(--space-5) 0; }
  html:not(.ds-mobile) .ds-ev--row .ds-ev__body { gap: 12px; }
  html:not(.ds-mobile) .ds-ev--row .ds-ev__head { gap: 14px; padding-bottom: 12px; }
  html:not(.ds-mobile) .ds-ev--row .ds-ev__date { font-size: 48px; }
  html:not(.ds-mobile) .ds-ev--row .ds-ev__meta { font-size: var(--fs-label); }
  html:not(.ds-mobile) .ds-ev--row .ds-ev__title { font-size: 17px; }
}

/* ---------- くじ（くじ券）：.ds-kuji は .ds-ticket と一緒に付ける。上＝画像（券の内側）＋情報、ミシン目、下＝1回の価格。格子は .ds-cards--wide ---------- */
.ds-kuji { min-width: 0; cursor: pointer; }
.ds-kuji__img { margin: 10px 10px 0; border-radius: 3px; }
.ds-kuji__info { display: flex; flex-direction: column; gap: 8px; padding: 14px var(--space-4) 16px; min-width: 0; }
.ds-kuji__lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-label); font-weight: var(--fw-label); font-size: var(--fs-label-sm); letter-spacing: var(--ls-label); color: var(--color-text-sub); }
.ds-kuji__lab, .ds-kuji__period { min-height: 22px; }
.ds-kuji__lab .ds-tag, .ds-kuji__period .ds-tag { flex: none; }
.ds-kuji__title { font-size: 15px; }
.ds-kuji__period { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-note); line-height: 1.5; color: var(--color-text-sub); }
.ds-kuji__period .ds-num { font-size: 15px; color: var(--color-text); }
.ds-kuji .ds-ticket__perf { margin-top: auto; }
.ds-kuji__bot { display: flex; align-items: center; gap: 12px; padding: 12px var(--space-4) 14px; }
.ds-kuji__price { display: flex; align-items: baseline; gap: 6px; margin-right: auto; white-space: nowrap; }
.ds-kuji__price small, .ds-kuji__price em { font-size: var(--fs-label); font-weight: var(--fw-bold); font-style: normal; color: var(--color-text-sub); }
.ds-kuji__price b { font-family: var(--font-num); font-weight: var(--fw-display); font-size: var(--fs-total); line-height: 1; }
/* ¥ は数字より小さく（大きい ¥ は横棒が張り出して読みにくい）。価格の大きい箇所で共通 */
.ds-yen { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: .62em; margin-right: .08em; letter-spacing: 0; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-kuji__title { font-size: 16px; } }

/* ---------- 開閉（アコーディオン） ---------- */
.ds-acc { border-top: var(--bw-1) solid var(--color-line); border-bottom: var(--bw-1) solid var(--color-line); }
.ds-acc__item + .ds-acc__item { border-top: var(--bw-1) solid var(--color-line); }
.ds-acc__head { width: 100%; min-height: var(--h-row); padding: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: var(--space-4); align-items: center; font-size: var(--fs-acc-head); font-weight: var(--fw-bold); line-height: 1.6; text-align: left; cursor: pointer; transition: background-color var(--dur) ease; }
.ds-acc__mark { font-family: var(--font-body); font-size: 18px; text-align: right; }
.ds-acc__mark::before { content: "＋"; }
.ds-acc__item.is-open .ds-acc__mark::before { content: "−"; }
.ds-acc__body { display: none; padding: 0 40px 18px 0; font-size: var(--fs-acc-body); line-height: var(--lh-body); color: var(--color-text-body); text-wrap: pretty; }
.ds-acc__item.is-open .ds-acc__body { display: block; }
/* 開閉の見出しを .ds-kv の行と同じ並びにする（券の中の「受取場所」→ 開くと会場マップ） */
.ds-acc__kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--space-3); font-size: var(--fs-body-sm); line-height: 1.6; }
.ds-acc__kv > :first-child { font-weight: var(--fw-body); color: var(--color-text-sub); }
/* 基本情報の表の次の行。ラベル幅を表と揃える。会場の行き方は表の中、注意事項はこの1行 */
.ds-kv--lined + .ds-acc { border-top: 0; }
.ds-kv--lined + .ds-acc .ds-acc__kv { grid-template-columns: 84px minmax(0, 1fr); gap: 0; font-size: inherit; }
.ds-kv--lined + .ds-acc .ds-acc__kv > :first-child { font-size: var(--fs-caption); }
.ds-kv--lined + .ds-acc .ds-acc__kv > :last-child { font-size: var(--fs-body); }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-kv--lined + .ds-acc .ds-acc__kv > :last-child { font-size: 16px; } }
.ds-kv--lined + .ds-acc .ds-acc__body { padding-left: 84px; }
@media (min-width: 768px) { html:not(.ds-mobile) .ds-kv--lined + .ds-acc .ds-acc__kv { grid-template-columns: 130px minmax(0, 1fr); } html:not(.ds-mobile) .ds-kv--lined + .ds-acc .ds-acc__body { padding-left: 130px; } }
/* 中身を右端まで使う（フォーム・商品の行を入れるとき） */
.ds-acc--wide .ds-acc__body { padding-right: 0; }
/* 表の中の補足。閉じたときは1行で、通常の開閉（--h-row）より低い */
.ds-acc--slim { border: 0; margin-top: 8px; }
.ds-acc--slim .ds-acc__head { min-height: 0; padding: 2px 0; font-size: var(--fs-caption); line-height: 1.4; gap: var(--space-2); }
.ds-acc--slim .ds-acc__mark { font-size: 14px; }
.ds-acc--slim .ds-acc__body { padding: 2px 0 0; font-weight: var(--fw-body); }

/* ---------- 入力フォーム（ecforce のフォーム要素に合わせる） ---------- */
.ds-form { display: flex; flex-direction: column; gap: var(--space-5); }
.ds-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ds-field__label { display: flex; gap: var(--space-2); align-items: center; font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--color-text-body); }
.ds-field__req { font-size: 10px; padding: 1px 5px; border: var(--bw-1) solid currentColor; white-space: nowrap; line-height: 1.4; }
.ds-input, .ds-select, .ds-textarea { width: 100%; height: var(--h-field); padding: 0 14px; background: var(--color-bg-raised); color: var(--color-text); border: var(--bw-1) solid var(--color-border); border-radius: var(--radius-ui); font: inherit; font-size: 15px; }
.ds-textarea { height: auto; min-height: 120px; padding: var(--space-3) 14px; line-height: var(--lh-ui); resize: vertical; }
.ds-input::placeholder, .ds-textarea::placeholder { color: var(--color-placeholder); }
.ds-select-wrap { position: relative; }
.ds-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.ds-select--quiet { height: 40px; padding-left: 0; background: transparent; border: 0; font-size: var(--fs-body-sm); font-weight: var(--fw-bold); }
/* iOS は input / select / textarea の文字が 16px 未満だと、フォーカスしたとき画面が拡大する。タッチ端末だけ 16px。PC（マウス）は上のサイズのまま */
@media (pointer: coarse) {
  input, select, textarea,
  .ds-input, .ds-select, .ds-textarea, .ds-select--quiet { font-size: 16px; }
}
.ds-media--map { display: block; width: min(100%, 240px); margin-top: 12px; }
.ds-media--map:has(iframe) { aspect-ratio: 16 / 9; }
button.ds-media--map { padding: 0; border: 0; font-weight: 400; color: inherit; text-align: left; aspect-ratio: 1 / 1; }
.ds-media--map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ds-lightbox__slide > button.ds-media--map { width: min(100%, calc(100dvh - 140px)); margin-top: 0; aspect-ratio: 1 / 1; }
/* 件数と並び替えの帯（一覧ページ） */
.ds-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 48px; border-top: var(--bw-1) solid var(--color-line); border-bottom: var(--bw-1) solid var(--color-line); }
.ds-toolbar .ds-select-wrap { width: 160px; }
.ds-select-wrap::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-text-sub); }
.ds-field__help { font-size: var(--fs-label); line-height: 1.7; color: var(--color-text-muted); }
.ds-field__error { display: none; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--color-error); }
.ds-field__error svg { flex: none; width: 14px; height: 14px; }
.ds-field.is-error .ds-input, .ds-field.is-error .ds-select, .ds-field.is-error .ds-textarea { border: var(--bw-error) solid var(--color-error); }
.ds-field.is-error .ds-field__error { display: flex; }
.ds-check { display: flex; gap: 10px; align-items: center; min-height: var(--tap-min); font-size: var(--fs-body-sm); cursor: pointer; transition: opacity var(--dur) ease; }
.ds-check input { position: absolute; opacity: 0; pointer-events: none; }
.ds-check__box { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-text); font-size: 14px; font-weight: var(--fw-bold); }
.ds-check input:checked + .ds-check__box { background: var(--color-text); color: var(--color-bg); }
.ds-check input:checked + .ds-check__box::before { content: "✓"; }
.ds-surface .ds-check input:checked + .ds-check__box, .ds-ticket .ds-check input:checked + .ds-check__box { color: var(--color-surface); }
.ds-check input:focus-visible + .ds-check__box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ds-check.is-error .ds-check__box { border-color: var(--color-error); }
.ds-radios { display: flex; flex-direction: column; gap: var(--space-2); }
.ds-radio { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-4); border: var(--bw-1) solid var(--color-border); cursor: pointer; transition: opacity var(--dur) ease; }
.ds-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ds-radio__mark { width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--color-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ds-radio input:checked ~ .ds-radio__mark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-text); }
.ds-radio:has(input:checked) { border: 2px solid var(--color-text); padding: calc(var(--space-4) - 1px); }
.ds-radio__title { font-size: var(--fs-body); font-weight: var(--fw-bold); }
.ds-radio__text { font-size: var(--fs-caption); color: var(--color-text-sub); line-height: 1.7; }
.ds-alert { display: flex; gap: 10px; align-items: center; padding: var(--space-3) 14px; border: var(--bw-error) solid var(--color-error); font-size: var(--fs-body-sm); font-weight: var(--fw-bold); }
.ds-alert svg { flex: none; width: 16px; height: 16px; color: var(--color-error); }
/* 案内（エラーではないお知らせ）：形はエラーと同じ、線を細く、色は文字色 */
.ds-alert--info { border: var(--bw-1) solid var(--color-border); font-weight: var(--fw-label); }
.ds-alert--info svg { color: var(--color-text); }
/* 入力欄の長さ：項目の中身に合わせる（--s 郵便番号・有効期限など、--m カード番号・クーポン）。指定なしは全幅 */
.ds-field--s { max-width: var(--field-s); }
.ds-field--m { max-width: var(--field-m); }
/* 2つ以上の欄を横に並べる（お名前＋フリガナなど）。狭いと折り返す */
.ds-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-5) var(--space-3); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--color-text-sub); font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }
.ds-btn-line { width: 100%; min-height: var(--h-btn-2); display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; background: #06C755; color: #fff; border-radius: var(--radius-ui); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); cursor: pointer; text-decoration: none; }
.ds-btn-line:hover { background: #05b34c; }
/* 短い結果の通知。ヘッダーの直下に紙の帯で出す。下端は購入ボタンの場所 */
.ds-snack { position: fixed; z-index: 70; top: var(--h-header); left: 0; right: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px var(--gutter); background: var(--color-surface); color: var(--color-on-surface); border-bottom: 3px solid var(--color-accent); font-size: var(--fs-body-sm); font-weight: var(--fw-bold); line-height: 1.45; transform: translateY(-100%); visibility: hidden; transition: transform .28s ease, visibility .28s ease; }
.ds-snack.is-on { transform: none; visibility: visible; }
.ds-snack svg { flex: none; width: 16px; height: 16px; }
/* 誤りの結果。帯は成功と同じ紙。下辺とアイコンだけ、紙の上のエラー色 */
.ds-snack--error { border-bottom-color: var(--color-error-on-surface); }
.ds-snack--error svg { color: var(--color-error-on-surface); }
@media (prefers-reduced-motion: reduce) { .ds-snack { transition: none; } }
/* 入力欄とボタンを横に並べる（クーポンの「適用する」など） */
.ds-field__row { display: flex; gap: var(--space-2); }
.ds-field__row > .ds-input { flex: 1; min-width: 0; }
.ds-field__row > .ds-btn-2 { flex: none; min-height: var(--h-field); }

/* ---------- 送料無料までのゲージ ---------- */
.ds-gauge { display: flex; flex-direction: column; gap: 6px; }
.ds-gauge__text { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.ds-gauge__goal { font-family: var(--font-num); font-weight: var(--fw-display); font-size: 15px; color: var(--color-text-sub); }
.ds-gauge__track { height: 6px; background: var(--color-line); }
.ds-gauge__fill { height: 100%; width: var(--_p, 0%); background: var(--color-text); transition: width var(--dur-reveal) var(--ease); }
.ds-gauge.is-done .ds-gauge__fill { background: var(--color-accent); }

/* ---------- ページ送り ---------- */
.ds-pager { display: flex; gap: 6px; align-items: center; justify-content: center; }
.ds-pager__item { width: var(--tap-min); height: var(--tap-min); display: flex; align-items: center; justify-content: center; border: var(--bw-1) solid var(--color-border); font-family: var(--font-num); font-weight: var(--fw-display); font-size: 17px; cursor: pointer; transition: background var(--dur) ease; }
.ds-pager__item.is-current { background: var(--color-surface); border-color: var(--color-surface); color: var(--color-on-surface); cursor: default; }
.ds-pager__item:disabled { opacity: .3; pointer-events: none; }
.ds-pager__gap { font-family: var(--font-body); color: var(--color-text-muted); }

/* ---------- モーダル ---------- */
.ds-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 72px 0 0; background: var(--color-overlay); overscroll-behavior: none; }
.ds-modal.is-open { display: flex; }
html:has(.ds-modal.is-open),
html:has(.ds-modal.is-open) body { overflow: hidden; }
.ds-modal__panel { width: 100%; max-width: 960px; max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0; padding: 0 var(--gutter) var(--space-6); background: var(--color-bg); color: var(--color-text); border: var(--bw-1) solid var(--color-line); box-shadow: var(--shadow-modal); }
.ds-modal__panel > * { flex: none; }
.ds-modal__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin: 0 calc(var(--gutter) * -1); padding: var(--space-6) var(--gutter) var(--space-5); background: var(--color-bg); }
@media (min-width: 768px) {
  html:not(.ds-mobile) .ds-modal { padding: 120px var(--gutter) 0; }
  html:not(.ds-mobile) .ds-modal__panel { padding: 0 40px 40px; }
  html:not(.ds-mobile) .ds-modal__head { margin: 0 -40px; padding: 40px 40px 28px; }
}

/* ---------- スタンプ（完了の印） ---------- */
/* 丸い二重線のスタンプ（見本 CT-05 と同じ）。中の文字・線の間隔は --stamp-size に比例（124px のとき見本の値）。外＝2px、内＝1px を 8px 内側。中は MOMENT／線／CONFIRMED／線／日付。
   インクの擦れは .ds-stamp__ink のマスク（細かい擦れ＋大きなムラの2枚）。押した瞬間に外へ広がる輪は ::after（マスクの外に出すため別の層） */
.ds-stamp { position: relative; display: inline-block; width: var(--stamp-size); height: var(--stamp-size); color: var(--stamp-ink); transform: rotate(var(--stamp-rotate)); pointer-events: none; }
.ds-stamp__ink { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--stamp-size) * .024); border: 2px solid var(--stamp-ink); border-radius: 50%; outline: 1px solid var(--stamp-ink); outline-offset: calc(var(--stamp-size) * -.065);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.425' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0175' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -3 2.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' style='mix-blend-mode:multiply'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.425' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0175' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -3 2.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' style='mix-blend-mode:multiply'/%3E%3C/svg%3E"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.ds-stamp__sub { font-family: var(--font-label); font-weight: var(--fw-label); font-size: calc(var(--stamp-size) * .081); line-height: 1; letter-spacing: .14em; }
.ds-stamp__rule { width: 74%; height: 1px; background: currentColor; opacity: .8; }
.ds-stamp__main { font-family: var(--font-display); font-weight: var(--fw-label); font-size: calc(var(--stamp-size) * .17); line-height: 1; letter-spacing: .08em; white-space: nowrap; }
.ds-stamp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; }
/* 押す：2.4倍から落ちて 0.9倍で当たり、1倍に戻る（0.42秒）。当たった瞬間に輪が広がって消える（0.5秒）。--stamp-delay で押す時刻を決める */
.ds-stamp[data-stamp] { opacity: 0; }
.ds-stamp.is-in { animation: ds-stamp .42s linear var(--stamp-delay, 0s) both; }
/* 押し終えたらアニメーションを外す。iPhone の Safari は、アニメーションを保持したままだとスタンプを粗い解像度で描く */
.ds-stamp.is-done { opacity: 1; }
.ds-stamp.is-in::after { animation: ds-stamp-ring .5s linear calc(var(--stamp-delay, 0s) + .18s) both; }
@keyframes ds-stamp { 0% { opacity: 0; transform: rotate(var(--stamp-rotate)) scale(2.4); } 25% { opacity: 1; } 43% { transform: rotate(var(--stamp-rotate)) scale(.9); } 100% { opacity: 1; transform: rotate(var(--stamp-rotate)) scale(1); } }
@keyframes ds-stamp-ring { 0% { opacity: 1; outline: 2px solid rgba(241, 239, 234, .5); outline-offset: 4px; } 99% { opacity: 1; outline: 12px solid rgba(241, 239, 234, 0); outline-offset: 30px; } 100% { opacity: 0; } }

/* ---------- レア度の縁（くじのカード） ---------- */
.ds-rarity { padding: 3px; border-radius: var(--radius-ticket); background: var(--rarity-d); }
.ds-rarity--c { background: var(--rarity-c); }
.ds-rarity--b { background: var(--rarity-b); }
.ds-rarity--a { background: var(--rarity-a); }
.ds-rarity--last { background: var(--rarity-last); }
.ds-rarity > .ds-media { border-radius: calc(var(--radius-ticket) - 3px); }

/* =====================================================================
   ホバー／タッチ
   PC のホバーと Mobile のタッチダウンで同じ反応。:active は常に、:hover はマウス環境だけ。
   ===================================================================== */
.ds-header__logo:active, .ds-icon-btn:active, .ds-back:active, .ds-tab:not(.is-active):active, .ds-chip:active, .ds-qty__btn:active, .ds-check:active, .ds-radio:active { opacity: var(--hover-dim); }
.ds-btn:active { background: var(--_bgh); }
.ds-btn:active .ds-btn__arrow { transform: translateX(var(--hover-arrow)); }
.ds-btn-2:active { background: var(--_h); }
.ds-link:active { text-decoration-thickness: 2px; }
.ds-link--quiet:active { text-decoration-color: currentColor; }
.ds-card:active .ds-media__img, .ds-row:not(.is-ended):active .ds-media__img { transform: scale(var(--hover-media-scale)); }
.ds-card:active .ds-card__title { text-decoration-color: currentColor; }
.ds-ev:active .ds-media__img, .ds-kuji:active .ds-media__img { transform: scale(var(--hover-media-scale)); }
.ds-ev:active .ds-ev__title, .ds-kuji:active .ds-kuji__title { text-decoration-color: currentColor; }
.ds-lift:active { transform: translateY(var(--hover-lift)); }
.ds-row:not(.is-ended):active, .ds-acc__head:active { background-color: var(--color-hover-row); }
@media (prefers-reduced-motion: reduce) { .ds-pass { transform: none !important; } .ds-pass-scale > .ds-pass { transform: translate(-50%, -50%) scale(var(--pass-s)) !important; } }
.ds-pager__item:not(.is-current):active { background: var(--color-hover-on-dark); }
.ds-fab:active .ds-fab__inner { transform: translateY(var(--fab-lift)) scale(var(--fab-scale)); }
@media (hover: hover) {
  .ds-header__logo:hover, .ds-icon-btn:hover, .ds-back:hover, .ds-tab:not(.is-active):hover, .ds-chip:hover, .ds-qty__btn:hover, .ds-check:hover, .ds-radio:hover { opacity: var(--hover-dim); }
  .ds-btn:hover { background: var(--_bgh); }
  .ds-btn:hover .ds-btn__arrow { transform: translateX(var(--hover-arrow)); }
  .ds-btn-2:hover { background: var(--_h); }
  .ds-link:hover { text-decoration-thickness: 2px; }
  .ds-link--quiet:hover { text-decoration-color: currentColor; }
  .ds-card:hover .ds-media__img, .ds-row:not(.is-ended):hover .ds-media__img { transform: scale(var(--hover-media-scale)); }
  .ds-card:hover .ds-card__title { text-decoration-color: currentColor; }
  .ds-ev:hover .ds-media__img, .ds-kuji:hover .ds-media__img { transform: scale(var(--hover-media-scale)); }
  .ds-ev:hover .ds-ev__title, .ds-kuji:hover .ds-kuji__title { text-decoration-color: currentColor; }
  .ds-lift:hover { transform: translateY(var(--hover-lift)); }
  .ds-row:not(.is-ended):hover, .ds-acc__head:hover { background-color: var(--color-hover-row); }
  .ds-pager__item:not(.is-current):hover { background: var(--color-hover-on-dark); }
  .ds-fab:hover .ds-fab__inner { transform: translateY(var(--fab-lift)) scale(var(--fab-scale)); }
}

@media (prefers-reduced-motion: reduce) {
  .ds *, .ds *::before, .ds *::after { animation: none !important; transition-duration: .01s !important; }
}
