/* ========================================
   sys_demo 共通基盤CSS
   ebookingシステム画面のチラ見せHTML用
   .cta-bg-layer 内に閉じ込めて表示する
   ======================================== */

/* スコープルート：CTA背景レイヤー内に確実に閉じ込める */
.cta-bg-layer .sys-demo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    color: rgb(96, 98, 102);
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
    overflow: clip;
    pointer-events: none;
    user-select: none;
}

.cta-bg-layer .sys-demo * {
    box-sizing: border-box;
}

/* デモ値マスク：CSS filter で視覚的にぼかす */
.cta-bg-layer .sys-demo .sys-demo-mask {
    filter: blur(1.2px);
    display: inline-block;
}

/* 金額・運賃・税額・為替レート等の金額系には mask-strong を併用して
   通常モザイクより濃くする（読めない程度） */
.cta-bg-layer .sys-demo .sys-demo-mask-strong {
    filter: blur(3.5px);
    display: inline-block;
}

/* テーブル基本リセット */
.cta-bg-layer .sys-demo table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
    font-size: 11px;
}

.cta-bg-layer .sys-demo th,
.cta-bg-layer .sys-demo td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid rgb(235, 238, 245);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.cta-bg-layer .sys-demo thead th {
    background: #fff;
    color: rgb(144, 147, 153);
    font-weight: normal;
    font-size: 11px;
}

.cta-bg-layer .sys-demo tbody tr:nth-child(even) {
    background: #fafafa;
}

/* 疑似ボタン（span を button 風に） */
.cta-bg-layer .sys-demo-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    line-height: 1;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: default;
}

.cta-bg-layer .sys-demo-btn-primary {
    background: rgb(64, 158, 255);
    color: #fff;
    border-color: rgb(64, 158, 255);
}

.cta-bg-layer .sys-demo-btn-plain {
    background: #ecf5ff;
    color: rgb(64, 158, 255);
    border-color: rgb(179, 216, 255);
}

/* セレクトボックス風 span */
.cta-bg-layer .sys-demo-select {
    display: inline-block;
    min-width: 90px;
    padding: 3px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #c0c4cc;
    font-size: 11px;
    line-height: 1.4;
}

/* ツールバー：検索フォーム上部 */
.cta-bg-layer .sys-demo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    background: #fff;
    border-bottom: 1px solid #ebeef5;
    gap: 0.6rem;
    font-size: 11px;
}

.cta-bg-layer .sys-demo-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.cta-bg-layer .sys-demo-filter-label {
    color: rgb(96, 98, 102);
    margin: 0 0.2rem 0 0.4rem;
}

.cta-bg-layer .sys-demo-actions {
    display: flex;
    gap: 0.4rem;
}

/* SP対応：max-width 1080px で縮小 */
@media (max-width: 1080px) {
    .cta-bg-layer .sys-demo {
        font-size: 10px;
    }
    .cta-bg-layer .sys-demo table {
        font-size: 9px;
    }
    .cta-bg-layer .sys-demo th,
    .cta-bg-layer .sys-demo td {
        padding: 0.3rem 0.2rem;
    }
    .cta-bg-layer .sys-demo-toolbar {
        padding: 0.4rem 0.6rem;
        font-size: 9px;
    }
    .cta-bg-layer .sys-demo-select {
        min-width: 60px;
        padding: 2px 6px;
        font-size: 9px;
    }
}
