/* 店舗管理（merchant-operations） */

:root {
    --color-text: #1a1a1a;
    --color-text-muted: #666;
    --color-accent: #2d9f4e;
    --color-accent-dark: #248a42;
    --color-border: #e8e8e8;
    --color-card-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.store-body {
    margin: 0;
    min-height: 100dvh;
    background: #f3f4f6;
    color: var(--color-text);
    font-family: 'Noto Sans JP', 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* 共通パネル */
.store-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px 16px;
}

.store-panel__card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--color-card-shadow);
}

.store-panel__card--wide {
    max-width: 560px;
}

.store-panel__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.store-panel__logo {
    display: block;
    width: auto;
    height: 36px;
    margin: 0;
}

.store-panel__badge {
    display: block;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.store-panel__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.store-panel__lead {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

.store-panel__error {
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
}

.store-panel__error p {
    margin: 0;
}

.store-panel__error p + p {
    margin-top: 4px;
}

.store-panel__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store-panel__label {
    font-size: 13px;
    font-weight: 500;
}

.store-panel__required {
    font-size: 11px;
    font-weight: 600;
    color: #dc2626;
}

.store-panel__hint {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-muted);
}

.store-panel__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.store-panel__input:focus {
    border-color: var(--color-accent);
}

.store-panel__input.is-error {
    border-color: #dc2626;
}

.store-panel__submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.store-panel__submit:hover {
    background: var(--color-accent-dark);
}

.store-panel__submit--secondary {
    background: #fff;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.store-panel__submit--secondary:hover {
    background: #ecfdf3;
}

.store-panel__success {
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #166534;
    font-size: 13px;
}

.store-verify__form {
    margin-top: 8px;
}

.store-verify__hint {
    margin-top: 16px;
    text-align: center;
}

/* 店舗登録フォーム */
.store-register__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.store-register__section {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-register__section-title {
    margin: 0 0 4px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

/* 後方互換（旧クラス名） */
.store-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px 16px;
}

.store-login__card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--color-card-shadow);
}

.store-login__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.store-login__logo {
    display: block;
    width: auto;
    height: 36px;
    margin: 0;
}

.store-login__badge {
    display: block;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.store-login__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.store-login__lead {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

.store-login__note {
    margin: 0 0 24px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}

.store-login__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-login__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store-login__label {
    font-size: 13px;
    font-weight: 500;
}

.store-login__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.store-login__submit {
    margin-top: 4px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.store-login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.store-login__error {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
}

.store-login__error p {
    margin: 0;
}

/* 店舗ダッシュボード（ホーム） */
.store-dashboard {
    min-height: 100dvh;
    background: #eceff1;
}

.store-dashboard__appbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: max(8px, env(safe-area-inset-top, 0px)) 12px 8px 16px;
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.store-dashboard__appbar-start {
    display: flex;
    align-items: center;
    min-width: 0;
}

.store-dashboard__logo {
    display: block;
    width: auto;
    height: 16px;
    filter: brightness(0) invert(1);
}

.store-dashboard__appbar-end {
    flex-shrink: 0;
}

/* アプリバー（共通） */
.store-appbar__start {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.store-appbar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: -8px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

.store-appbar__back:hover {
    background: rgba(255, 255, 255, 0.12);
}

.store-appbar__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-appbar__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.store-appbar__menu:hover {
    background: rgba(255, 255, 255, 0.12);
}

.store-appbar__menu:active {
    background: rgba(255, 255, 255, 0.2);
}

/* ハンバーガーメニュー */
body.store-menu-open {
    overflow: hidden;
}

.store-menu[hidden] {
    display: none;
}

.store-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.store-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.store-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(300px, 88vw);
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.store-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px 8px 20px;
    background: var(--color-accent);
    color: #fff;
}

.store-menu__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.store-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.store-menu__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.store-menu__list {
    margin: 0;
    padding: 8px 0;
    list-style: none;
    flex: 1;
}

.store-menu__link {
    display: block;
    padding: 14px 20px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.store-menu__link:hover {
    background: #f3f4f6;
}

.store-menu__logout-form {
    margin: 0;
    padding: 12px 16px 24px;
    border-top: 1px solid var(--color-border);
}

.store-menu__logout {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff;
    color: #dc2626;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.store-menu__logout:hover {
    background: #fef2f2;
}

.store-dashboard__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.store-dashboard__logout:hover {
    background: rgba(255, 255, 255, 0.12);
}

.store-dashboard__logout:active {
    background: rgba(255, 255, 255, 0.2);
}

.store-dashboard__main {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 16px 32px;
}

.store-dashboard__banner {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
}

.store-dashboard__banner--success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.store-dashboard__banner-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
}

.store-dashboard__banner-text {
    margin: 0;
    font-size: 13px;
    color: #388e3c;
}

.store-dashboard__hero {
    margin-bottom: 24px;
    padding: 8px 4px 0;
}

.store-dashboard__greeting {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    color: #607d8b;
    letter-spacing: 0.02em;
}

.store-dashboard__store-name {
    margin: 0;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

.store-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) {
    .store-dashboard__main {
        padding: 28px 24px 40px;
    }

    .store-dashboard__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.store-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 132px;
    padding: 20px 12px 16px;
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.2s, transform 0.1s;
}

.store-tile:not(.store-tile--soon):active {
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

a.store-tile {
    text-decoration: none;
    color: inherit;
}

a.store-tile:active {
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.store-tile--soon {
    cursor: default;
    opacity: 0.72;
}

.store-tile__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eceff1;
    color: #78909c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.store-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--color-accent);
}

.store-tile__label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.store-tile__desc {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.store-dashboard__footnote {
    margin: 20px 0 0;
    font-size: 12px;
    color: #90a4ae;
    text-align: center;
}

/* ウェイティング */
.store-waiting__appbar-start {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.store-waiting__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

.store-waiting__back:hover {
    background: rgba(255, 255, 255, 0.12);
}

.store-waiting__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.store-waiting__main {
    padding-top: 16px;
}

.store-waiting__section-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.store-waiting__section-lead {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.store-waiting__checkin {
    margin-bottom: 28px;
    padding: 20px 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.store-waiting__error {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    font-size: 13px;
}

.store-waiting__error p {
    margin: 0;
}

.store-waiting__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-waiting__label {
    font-size: 13px;
    font-weight: 600;
}

.store-waiting__input {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 18px;
    letter-spacing: 0.06em;
    outline: none;
}

.store-waiting__input:focus {
    border-color: var(--color-accent);
}

.store-waiting__input.is-error {
    border-color: #dc2626;
}

.store-waiting__submit {
    margin-top: 4px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--color-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.store-waiting__submit:active {
    background: var(--color-accent-dark);
}

.store-waiting__scan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    margin-bottom: 16px;
    padding: 14px 20px;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    background: #ecfdf3;
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.store-waiting__scan:active {
    background: #d1fae5;
}

.store-waiting__or {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #90a4ae;
    text-align: center;
}

/* QR スキャナモーダル */
body.store-qr-scanner-open {
    overflow: hidden;
}

.store-qr-scanner[hidden] {
    display: none;
}

.store-qr-scanner {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 600px) {
    .store-qr-scanner {
        align-items: center;
    }
}

.store-qr-scanner__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.store-qr-scanner__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 92dvh;
    padding: 20px 20px 28px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: auto;
}

@media (min-width: 600px) {
    .store-qr-scanner__panel {
        border-radius: 20px;
    }
}

.store-qr-scanner__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.store-qr-scanner__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.store-qr-scanner__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #eceff1;
    color: var(--color-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.store-qr-scanner__lead {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.store-qr-scanner__viewport {
    width: 100%;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.store-qr-scanner__viewport video {
    border-radius: 12px;
}

.store-qr-scanner__error {
    min-height: 1.2em;
    margin: 12px 0 0;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
}

.store-waiting__list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.store-waiting__count {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.store-waiting__empty {
    padding: 32px 16px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.store-waiting__empty p {
    margin: 0;
}

.store-waiting__empty-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.store-waiting__fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    box-shadow:
        0 4px 12px rgba(45, 159, 78, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.store-waiting__fab:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(45, 159, 78, 0.35);
}

.store-waiting__main {
    padding-bottom: 88px;
}

/* チェックイン専用画面 */
.store-check-in__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 480px;
}

.store-check-in__lead {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}

.store-check-in__viewport {
    width: 100%;
    min-height: min(72vw, 360px);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.store-check-in__viewport video {
    border-radius: 16px;
}

.store-check-in__error {
    min-height: 1.2em;
    margin: 0;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
}

.store-check-in__manual {
    padding: 4px 0 16px;
}

.store-check-in__form {
    padding: 16px 18px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ヘルプ */
.store-help__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-help__section {
    padding: 20px 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.store-help__heading {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.store-help__text {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.store-waiting__cards {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-waiting-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.store-waiting-card__main {
    min-width: 0;
    flex: 1;
}

.store-waiting-card__name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.store-waiting-card__id {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.store-waiting-card__time {
    margin: 0;
    font-size: 12px;
    color: #90a4ae;
}

.store-waiting-card__side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 120px;
}

.store-waiting-card__status-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.store-waiting-card__status-label {
    font-size: 11px;
    font-weight: 600;
    color: #90a4ae;
}

.store-waiting-card__status-select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.store-waiting-card__status-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.store-waiting-card__status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.store-waiting-card--waiting .store-waiting-card__status {
    background: #fff8e1;
    color: #f57f17;
}

.store-waiting-card--playing .store-waiting-card__status {
    background: #e3f2fd;
    color: #1565c0;
}

.store-waiting-card--awaiting_payment .store-waiting-card__status {
    background: #fce4ec;
    color: #c2185b;
}

.store-waiting-card__action {
    min-height: 40px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: var(--color-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.store-waiting-card__action:active {
    background: var(--color-accent-dark);
}

@media (min-width: 600px) {
    .store-waiting__cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 旧ホーム（後方互換） */
.store-home {
    min-height: 100dvh;
}

.store-home__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.store-home__logo {
    width: auto;
    height: 32px;
}

.store-home__logout {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: underline;
}

.store-home__main {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.store-home__complete {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    text-align: center;
}

.store-home__complete-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #166534;
}

.store-home__complete-text {
    margin: 0;
    font-size: 13px;
    color: #166534;
}

.store-home__card {
    margin-bottom: 24px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--color-card-shadow);
    text-align: center;
}

.store-home__label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.store-home__store-name {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.store-home__email {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.store-home__next {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
}

.store-home__next-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
}

.store-home__next-list {
    margin: 0;
    padding-left: 1.2em;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.store-home__next-list li + li {
    margin-top: 6px;
}

.store-home__flash {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #166534;
    font-size: 13px;
}

.store-home__greeting {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.store-home__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
}

.store-home__message {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* 運営（/ops） */
.ops-page {
    min-height: 100dvh;
    padding: 32px 16px 48px;
}

.ops-page__inner {
    max-width: 720px;
    margin: 0 auto;
}

.ops-page__header {
    text-align: center;
    margin-bottom: 28px;
}

.ops-page__logo {
    display: block;
    margin: 0 auto 12px;
    height: 32px;
    width: auto;
}

.ops-page__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
}

.ops-page__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.ops-page__lead {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.ops-page__issued {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}

.ops-page__issued-title {
    margin: 0 0 6px;
    font-weight: 600;
    color: #166534;
}

.ops-page__issued-meta {
    margin: 0 0 12px;
    font-size: 13px;
    color: #166534;
}

.ops-page__issued-url-wrap {
    display: flex;
    gap: 8px;
}

.ops-page__issued-url {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
}

.ops-page__copy-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ops-page__issued-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #166534;
}

.ops-page__card {
    margin-bottom: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--color-card-shadow);
}

.ops-page__section-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.ops-page__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ops-page__empty {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.ops-table-wrap {
    overflow-x: auto;
}

.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ops-table th,
.ops-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.ops-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 12px;
}

.ops-table__status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.ops-table__status--pending {
    background: #fef3c7;
    color: #92400e;
}

.ops-table__status--used {
    background: #ecfdf3;
    color: #166534;
}

.ops-table__status--expired {
    background: #f3f4f6;
    color: #6b7280;
}

/* 店舗情報編集 */
.store-profile__main {
    max-width: 640px;
}

.store-profile__lead {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.store-profile__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-profile__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 18px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.store-profile__section-title {
    margin: 0;
    padding-top: 4px;
    font-size: 16px;
    font-weight: 700;
}

.store-profile__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .store-profile__row {
        grid-template-columns: 1fr;
    }
}

.store-profile__textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}

.store-profile__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.store-profile__publish {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-profile__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.store-profile__checkbox input[type='checkbox'] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-accent);
}

.store-profile__preview {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
    word-break: break-all;
}

.store-profile__preview a {
    color: var(--color-accent);
}


/* ============================================================
   フロア（タグパネル・モーダル）
   ============================================================ */

/* タグ状況パネル行 */
.store-waiting__tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .store-waiting__tags {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* タグパネル 1枚 */
.store-tag-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 14px;
    text-align: center;
    border: 2px solid transparent;
}

.store-tag-panel--active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.store-tag-panel--empty {
    background: #f9fafb;
    border-color: var(--color-border);
}

.store-tag-panel__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
}

.store-tag-panel__count {
    font-size: 15px;
    font-weight: 700;
    color: #1d4ed8;
}

.store-tag-panel--empty .store-tag-panel__count {
    color: var(--color-text-muted);
}

.store-tag-panel__type {
    font-size: 11px;
    color: #2563eb;
    font-weight: 600;
}

/* カード: 空き / 卓中 色分け */
.store-waiting-card--available {
    border-left: 4px solid var(--color-accent);
}

.store-waiting-card--playing {
    border-left: 4px solid #3b82f6;
}

/* 卓中バッジ（タグ|ゲーム種別） */
.store-waiting-card__badge {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
}

/* アクションボタン色修飾 */
.store-waiting-card__action--primary {
    background: var(--color-accent);
    color: #fff;
}

.store-waiting-card__action--primary:hover {
    background: var(--color-accent-dark);
}

.store-waiting-card__action--danger {
    background: #ef4444;
    color: #fff;
}

.store-waiting-card__action--danger:hover {
    background: #dc2626;
}

/* 空テキスト */
.store-waiting__empty-text {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================================
   モーダル共通
   ============================================================ */

body.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 24px 20px 36px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 600px) {
    .modal {
        align-items: center;
    }

    .modal__sheet {
        border-radius: 20px;
        max-height: 90dvh;
    }
}

.modal__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.modal__sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.modal__field {
    margin-bottom: 20px;
}

.modal__label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.modal__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal__option {
    display: block;
    cursor: pointer;
}

.modal__option-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.modal__option-label {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid var(--color-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.modal__option-radio:checked + .modal__option-label {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

.modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.modal__cancel {
    flex: 1;
    padding: 13px 0;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
}

.modal__submit {
    flex: 1;
    padding: 13px 0;
    border: none;
    border-radius: 12px;
    background: var(--color-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.modal__submit:active {
    background: var(--color-accent-dark);
}


/* ============================================================
   /home フロアダッシュボード
   ============================================================ */

.store-floor__main {
    padding-bottom: 48px;
}

/* フラッシュバナー */
.store-floor__banner {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #166534;
    font-size: 13px;
    line-height: 1.5;
}

/* タグ状況 4列グリッド */
.store-floor__tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}

.floor-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 14px 6px;
    border-radius: 14px;
    text-align: center;
    border: 2px solid transparent;
    min-height: 80px;
}

.floor-tag--active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.floor-tag--empty {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.floor-tag__name {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.floor-tag__count {
    font-size: 18px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1;
}

.floor-tag__type {
    font-size: 10px;
    font-weight: 600;
    color: #3b82f6;
}

.floor-tag__empty {
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
}

/* セクション共通 */
.store-floor__section {
    margin-bottom: 28px;
}

.store-floor__section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.store-floor__section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.store-floor__section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 0 6px;
    height: 22px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* 空状態 */
.store-floor__empty {
    padding: 24px 16px;
    background: #fafafa;
    border: 1.5px dashed #e5e7eb;
    border-radius: 14px;
    text-align: center;
}

.store-floor__empty-text {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

/* カードリスト */
.store-floor__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* カード */
.floor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border-left: 4px solid transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

.floor-card--available {
    border-left-color: var(--color-accent);
}

.floor-card--playing {
    border-left-color: #3b82f6;
}

.floor-card__info {
    flex: 1;
    min-width: 0;
}

.floor-card__name {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.floor-card__tag {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
}

.floor-card__meta {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
}

.floor-card__action {
    flex-shrink: 0;
}

/* クイックアクションボタン行 */
.store-floor__quick {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.floor-quick-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.floor-quick-btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.floor-quick-btn--primary:active {
    background: var(--color-accent-dark);
}

.floor-quick-btn--secondary {
    background: #f3f4f6;
    color: var(--color-text);
}

.floor-quick-btn--secondary:active {
    background: #e5e7eb;
}


/* --- 上書き: フロアカード角丸なし・間隔調整 --- */
.floor-card {
    border-radius: 0;
}

.floor-tag {
    border-radius: 0;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    text-align: center;
    padding: 14px 6px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 2px solid transparent;
    transition: background 0.1s;
}

.floor-tag--active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.floor-tag--set {
    background: #f0fdf4;
    border-color: #86efac;
}

.floor-tag--empty {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.floor-tag:active {
    opacity: 0.7;
}

.floor-tag__num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
}

.floor-tag--active .floor-tag__num {
    color: #1d4ed8;
}

.floor-tag__label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.floor-tag__count {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
}

.floor-tag__type {
    font-size: 10px;
    font-weight: 600;
    color: #3b82f6;
}

.floor-tag--set .floor-tag__type {
    color: #16a34a;
}

.floor-tag__unset {
    font-size: 10px;
    color: #d1d5db;
    font-weight: 500;
}

.store-floor__section {
    margin-bottom: 40px;
}

.store-floor__section--last {
    margin-bottom: 28px;
}

/* モーダルの option sub テキスト */
.modal__option-sub {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
    line-height: 1.2;
    margin-top: 1px;
}

/* --- 角丸なし上書き --- */
.floor-quick-btn--square {
    border-radius: 0;
}

.modal__option-label--square {
    border-radius: 0;
    padding: 10px 16px;
}

/* 待ち追加ボタン */
.store-floor__add-btn {
    margin-left: auto;
    padding: 6px 14px;
    border: none;
    border-radius: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.store-floor__add-btn:active {
    background: var(--color-accent-dark);
}

/* 卓パネル選択状態 */
.floor-tag--selected {
    background: #dbeafe;
    border-color: #1d4ed8;
    box-shadow: inset 0 0 0 2px #1d4ed8;
}

/* エラーバナー */
.store-floor__banner--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* チェックイン input スタイル (modal内) */
.modal .store-waiting__input {
    border-radius: 0;
    font-size: 16px;
    padding: 12px 14px;
}

/* ---- 卓パネル v3: コンパクト横並びレイアウト上書き ---- */
.floor-tag {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 8px 10px;
    min-height: 0;
    text-align: left;
    border-radius: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.1s, border-color 0.1s;
}

.floor-tag--empty  { background: #f9fafb; border-color: #e5e7eb; }
.floor-tag--set    { background: #f0fdf4; border-color: #86efac; }
.floor-tag--active { background: #f8faff; border-color: #bfdbfe; }
.floor-tag--selected { background: #dbeafe !important; border-color: #1d4ed8 !important; }

.floor-tag:active { opacity: 0.75; }

.floor-tag__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.floor-tag__id {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}

.floor-tag__num {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text);
}

.floor-tag--active .floor-tag__num,
.floor-tag--selected .floor-tag__num { color: #1d4ed8; }

.floor-tag__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.floor-tag__type {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.floor-tag--active .floor-tag__type { color: #2563eb; }
.floor-tag--set    .floor-tag__type { color: #16a34a; }

.floor-tag__stat {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
}

.floor-tag--active .floor-tag__stat { color: #1d4ed8; font-weight: 700; }

/* ---- 卓パネル v3: コンパクト横並びレイアウト上書き ---- */
.floor-tag {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 8px 10px;
    min-height: 0;
    text-align: left;
    border-radius: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.1s, border-color 0.1s;
}

.floor-tag--empty  { background: #f9fafb; border-color: #e5e7eb; }
.floor-tag--set    { background: #f0fdf4; border-color: #86efac; }
.floor-tag--active { background: #f8faff; border-color: #bfdbfe; }
.floor-tag--selected { background: #dbeafe !important; border-color: #1d4ed8 !important; }

.floor-tag:active { opacity: 0.75; }

.floor-tag__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.floor-tag__id {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}

.floor-tag__num {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text);
}

.floor-tag--active .floor-tag__num,
.floor-tag--selected .floor-tag__num { color: #1d4ed8; }

.floor-tag__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.floor-tag__type {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.floor-tag--active .floor-tag__type { color: #2563eb; }
.floor-tag--set    .floor-tag__type { color: #16a34a; }

.floor-tag__stat {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
}

.floor-tag--active .floor-tag__stat { color: #1d4ed8; font-weight: 700; }

/* チェックインボタン黒枠なし */
.floor-quick-btn {
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.floor-quick-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* 卓へ案内ボタン角丸なし */
.store-waiting-card__action--square {
    border-radius: 0;
}

/* 卓パネル: ニュートラル色・ボーダー1px に上書き */
.floor-tag--empty {
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.floor-tag--set {
    background: #f5f5f5;
    border: 1px solid #bbb;
}

.floor-tag--active {
    background: #fff;
    border: 1px solid #999;
}

.floor-tag--selected {
    background: #111 !important;
    border: 1px solid #111 !important;
}

.floor-tag--selected .floor-tag__num,
.floor-tag--selected .floor-tag__label,
.floor-tag--selected .floor-tag__type,
.floor-tag--selected .floor-tag__stat {
    color: #fff !important;
}

/* 卓パネル選択色: 黒を緑トーンに修正 */
.floor-tag--selected {
    background: #f0fdf4 !important;
    border: 1.5px solid #2d9f4e !important;
}

.floor-tag--selected .floor-tag__num {
    color: #166534 !important;
}

.floor-tag--selected .floor-tag__label {
    color: #166534 !important;
}

.floor-tag--selected .floor-tag__type {
    color: #16a34a !important;
}

.floor-tag--selected .floor-tag__stat {
    color: #16a34a !important;
    font-weight: 700;
}

/* ============================================================
   フロア v4: 卓メイン レイアウト
   ============================================================ */

.store-floor__body {
    padding: 0;
    padding-bottom: 48px;
}

/* フラッシュバナー */
.store-floor__banner {
    padding: 12px 16px;
    background: #ecfdf3;
    border-bottom: 1px solid #a7f3d0;
    color: #166534;
    font-size: 13px;
}
.store-floor__banner--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ---- 待ちセクション ---- */
.floor-machi {
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.floor-machi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.floor-machi__title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.floor-machi__count {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.floor-machi__checkin-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.floor-machi__empty {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    padding: 4px 0;
}

.floor-machi__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.machi-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.machi-card__name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.machi-card__time {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.machi-card__btn {
    margin: 0;
    padding: 6px 16px;
    border: none;
    border-radius: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- 卓セクションリスト ---- */
.floor-taku-list {
    display: flex;
    flex-direction: column;
}

.floor-taku {
    padding: 32px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.floor-taku__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.floor-taku__head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.floor-taku__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.floor-taku__type-form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.floor-taku__type-btn {
    padding: 3px 10px;
    border: 1px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.floor-taku__type-btn + .floor-taku__type-btn {
    border-left: none;
}

.floor-taku__type-btn--on {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.floor-taku__count {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.floor-taku__users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.floor-taku__empty {
    margin: 0;
    font-size: 12px;
    color: #bbb;
    padding: 4px 0;
}

/* 卓中ユーザーカード */
.taku-user {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    min-width: 80px;
}

.taku-user__name {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.taku-user__time {
    margin: 0;
    font-size: 10px;
    color: #9ca3af;
}

.taku-user__end {
    margin-top: 4px;
    padding: 4px 0;
    border: none;
    border-radius: 0;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

/* ============================================================
   フロア v4: 卓メイン レイアウト
   ============================================================ */

.store-floor__body {
    padding: 0;
    padding-bottom: 48px;
}

/* フラッシュバナー */
.store-floor__banner {
    padding: 12px 16px;
    background: #ecfdf3;
    border-bottom: 1px solid #a7f3d0;
    color: #166534;
    font-size: 13px;
}
.store-floor__banner--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ---- 待ちセクション ---- */
.floor-machi {
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.floor-machi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.floor-machi__title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.floor-machi__count {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.floor-machi__checkin-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.floor-machi__empty {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    padding: 4px 0;
}

.floor-machi__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.machi-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.machi-card__name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.machi-card__time {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.machi-card__btn {
    margin: 0;
    padding: 6px 16px;
    border: none;
    border-radius: 0;
    background: var(--color-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- 卓セクションリスト ---- */
.floor-taku-list {
    display: flex;
    flex-direction: column;
}

.floor-taku {
    padding: 32px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.floor-taku__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.floor-taku__head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.floor-taku__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.floor-taku__type-form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.floor-taku__type-btn {
    padding: 3px 10px;
    border: 1px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.floor-taku__type-btn + .floor-taku__type-btn {
    border-left: none;
}

.floor-taku__type-btn--on {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.floor-taku__count {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.floor-taku__users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.floor-taku__empty {
    margin: 0;
    font-size: 12px;
    color: #bbb;
    padding: 4px 0;
}

/* 卓中ユーザーカード */
.taku-user {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    min-width: 80px;
}

.taku-user__name {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.taku-user__time {
    margin: 0;
    font-size: 10px;
    color: #9ca3af;
}

.taku-user__end {
    margin-top: 4px;
    padding: 4px 0;
    border: none;
    border-radius: 0;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

/* チェックインモーダル内QRスキャナ */
.checkin-scanner {
    margin-bottom: 16px;
}

.checkin-scanner__viewport {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    background: #000;
}

.checkin-scanner__viewport video {
    width: 100%;
    height: auto;
    display: block;
}

.checkin-scanner__error {
    min-height: 16px;
    margin: 6px 0 0;
    font-size: 12px;
    color: #ef4444;
    text-align: center;
}

/* QRビューポート: 固定height でレイアウト確定させる */
.checkin-scanner__viewport {
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    background: #111;
    position: relative;
}

/* ---- 卓ごとの終了ボタン ---- */
.floor-taku__end-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.floor-taku__end-btn--hidden {
    visibility: hidden;
    pointer-events: none;
}

/* ---- 卓終了モーダル ---- */
.taku-end-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.taku-end-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taku-end-row__name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    min-width: 64px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taku-end-row__ranks {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}

.taku-rank-btn {
    display: block;
    cursor: pointer;
    flex: 1;
}

.taku-rank-btn__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.taku-rank-btn__label {
    display: block;
    text-align: center;
    padding: 10px 4px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
    white-space: nowrap;
}

.taku-rank-btn__radio:checked + .taku-rank-btn__label {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

.taku-end-row__solo {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- トーストバナー（画面中央fixed） ---- */
#floor-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 400;
    min-width: 260px;
    max-width: 360px;
    padding: 20px 28px;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    animation: toast-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: opacity 0.28s ease;
}

#floor-banner.store-floor__banner--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

@keyframes toast-pop {
    from { transform: translate(-50%, -50%) scale(0.82); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

/* ==============================
   履歴ページ
   ============================== */
.hist-body {
    padding: 0 0 80px;
}

.hist-empty {
    padding: 60px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.hist-day {
    margin-bottom: 4px;
}

.hist-day__label {
    margin: 0;
    padding: 14px 14px 8px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    background: #f3f4f6;
    border-top: 2px solid #d1d5db;
}

/* 卓タブ */
.hist-tabs {
    display: flex;
    border-bottom: 2px solid #111827;
}

.hist-tab {
    padding: 10px 20px;
    border: none;
    border-right: 1px solid #d1d5db;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hist-tab--active {
    background: #111827;
    color: #fff;
}

/* パネル */
.hist-panel {
    display: none;
}

.hist-panel--active {
    display: block;
}

/* ゲームセッション */
.hist-game {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0 6px;
}

.hist-game__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hist-game__time {
    margin-left: auto;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* エントリ行 */
.hist-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-bottom: 1px solid #f3f4f6;
}

.hist-entry:last-child {
    border-bottom: none;
}

.hist-entry__name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.hist-entry__ranks {
    display: flex;
    gap: 3px;
    flex: 1;
}

.hist-rank-btn {
    flex: 1;
    padding: 6px 2px;
    border: 1.5px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.hist-rank-btn--active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.hist-rank-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hist-entry__rating {
    font-size: 13px;
    font-weight: 700;
    min-width: 38px;
    text-align: right;
    flex-shrink: 0;
}

.hist-entry__rating--up   { color: #16a34a; }
.hist-entry__rating--down { color: #dc2626; }
.hist-entry__rating--none { color: #9ca3af; }

/* ---- 卓の設定 ---- */
.tbl-count {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.tbl-count__btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tbl-count__btn:hover { background: #f5f5f5; }
.tbl-count__input {
    width: 60px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: none;
    background: transparent;
}
.tbl-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.tbl-row:last-child { border-bottom: none; }
.tbl-row__label {
    width: 40px;
    font-weight: 600;
    color: #333;
}
.tbl-row__types { display: flex; gap: 8px; }
.tbl-row__type {
    padding: 6px 18px;
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.tbl-row__type.is-active {
    border-color: #333;
    background: #333;
    color: #fff;
}

/* ---- 卓を追加ボタン（フロア画面） ---- */
.floor-add-taku {
    padding: 16px;
    text-align: center;
}
.floor-add-taku__btn {
    display: inline-block;
    padding: 10px 32px;
    border: 2px dashed #bbb;
    background: transparent;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}
.floor-add-taku__btn:hover {
    border-color: #888;
    color: #333;
    background: #f9f9f9;
}
