ul, ol {
    margin-left: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-help {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    line-height: 1.6;
}

/* ── 1. 会場マップイメージ（最上部・高さ固定でスライダーを動かしても下がブレない） ── */
.canvas-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #383838;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 16px;
    height: 56vh;
    min-height: 300px;
    overflow: hidden; /* canvas は縮小して収まるので内部スクロールは不要。ページ全体のスクロールを妨げないため hidden */
    margin-bottom: 24px;
}

.canvas-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;      /* ステージのコンテンツ領域いっぱい（canvas の max-height:100% の基準を確定させる） */
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.venue-canvas {
    max-width: 100%;
    max-height: 100%; /* 56vh だと padding+border 分はみ出してスクロールが出るため、ホルダー基準で収める */
    width: auto;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.loading-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(56, 56, 56, 0.85);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
}

/* ── 操作ブロック（白カード） ── */
.control-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 24px 28px;
    margin-bottom: 24px;
}

/* ── 2. 申込者数スライダー ── */
.slider-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.participant-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
    outline: none;
    cursor: pointer;
}

.participant-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.participant-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.participant-value {
    min-width: 96px;
    text-align: center;
    font-weight: 700;
    color: #333;
    background: #f0f7f0;
    border: 2px solid #cce6cc;
    border-radius: 8px;
    padding: 8px 12px;
    white-space: nowrap;
}

.participant-value strong {
    font-size: 26px;
    color: #2e7d32;
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    padding: 0 2px;
}

/* ── 3. スプライトシート差し替え ── */
.sprite-reference {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0 16px;
}

.sprite-reference__img {
    width: 96px;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
}

.sprite-reference__text {
    flex: 1;
    min-width: 220px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.file-upload-area {
    position: relative;
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #f9fafb;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area.drag-over {
    border-color: #667eea;
    background: #e0e7ff;
    transform: scale(1.02);
}

.file-upload__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    pointer-events: none;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #9ca3af;
}

.file-upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 6px 0;
}

.file-upload-help {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.sprite-status {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    word-break: break-all;
}

.sprite-status--ok {
    color: #2e7d32;
}

.sprite-status--warn {
    color: #b26a00;
}

.sprite-actions {
    margin-top: 12px;
}

/* ── アラート ── */
.alert {
    padding: 16px;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto 24px auto;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

/* ── 4. ダウンロード ── */
.download-row {
    text-align: center;
    margin-bottom: 32px;
}

/* ── 5. 詳細説明 ── */
.usage-box {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.usage-box h3 {
    margin-top: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .control-block {
        padding: 20px;
    }

    .canvas-stage {
        height: 46vh;
        min-height: 240px;
    }

    .slider-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .participant-value {
        min-width: 0;
    }
}
