/* =============================================
   Stampia - 管理画面用CSS
   主催者向け：「簡単に始められる安心感」
   ============================================= */

:root {
    --brand-primary: #FF7A59;
    --brand-primary-dark: #ED5C39;
    --brand-primary-soft: #FFE4DC;
    --brand-secondary: #14B8A6;
    --brand-secondary-soft: #CCFBF1;
    --brand-accent: #FCD34D;

    --brand-cream: #FFFBF5;
    --brand-bg: #FAF6F1;
    --brand-surface: #FFFFFF;
    --brand-ink: #1F2937;
    --brand-ink-soft: #6B7280;
    --brand-ink-muted: #94A3B8;
    --brand-line: #F1E8DE;

    --sidebar-bg: #2D2438;        /* 深いプラム（ブラウンに寄せた紺の代替） */
    --sidebar-bg-soft: #3B2F4A;
    --sidebar-text: #E8E0EE;
    --sidebar-text-muted: #B8AECB;

    --success: #10B981;
    --warning: #F59E0B;
    --danger:  #EF4444;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 4px rgba(31, 41, 55, 0.06);
    --shadow-md: 0 4px 16px rgba(255, 122, 89, 0.10);
    --shadow-lg: 0 10px 30px rgba(31, 41, 55, 0.12);

    --grad-warm: linear-gradient(135deg, #FF8A6B 0%, #FF7A59 50%, #ED5C39 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--brand-ink);
    background: var(--brand-bg);
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- ログイン/登録ページ --- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--grad-warm);
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page::before {
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: rgba(252, 211, 77, 0.18);
}

.login-page::after {
    bottom: -100px; left: -100px;
    width: 320px; height: 320px;
    background: rgba(255, 255, 255, 0.12);
}

.login-container {
    background: var(--brand-surface);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: 0 16px 48px rgba(31, 41, 55, 0.18);
    position: relative;
    z-index: 1;
}

.login-brand {
    text-align: center;
    margin-bottom: 22px;
}

.login-brand img {
    height: 40px;
    width: auto;
}

.login-title {
    text-align: center;
    font-size: 1.15rem;
    color: var(--brand-ink);
    margin-bottom: 24px;
    line-height: 1.6;
    font-weight: 700;
}

.login-title small {
    display: block;
    font-size: 0.82rem;
    color: var(--brand-ink-soft);
    font-weight: 500;
    margin-top: 6px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

/* --- 管理画面レイアウト --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- サイドバー --- */
.admin-sidebar {
    width: 248px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid var(--sidebar-bg-soft);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-brand img {
    height: 32px;
    width: auto;
}

.sidebar-portal-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--sidebar-text-muted);
    background: var(--sidebar-bg-soft);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.sidebar-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sidebar-text);
}

.sidebar-header p {
    font-size: 0.78rem;
    color: var(--sidebar-text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.sidebar-nav {
    list-style: none;
    padding: 8px 0;
    flex: 1;
}

.sidebar-nav li a {
    display: block;
    padding: 11px 20px;
    color: var(--sidebar-text-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: var(--sidebar-bg-soft);
    color: #fff;
    text-decoration: none;
    border-left-color: var(--brand-primary);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-bg-soft);
}

.logout-link {
    color: #FCA5A5;
    font-size: 0.85rem;
}

/* --- メインコンテンツ --- */
.admin-main {
    flex: 1;
    padding: 28px 32px;
    max-width: 1200px;
}

.admin-main h2 {
    font-size: 1.45rem;
    color: var(--brand-ink);
    margin-bottom: 24px;
    font-weight: 800;
}

.admin-main h2 small {
    font-size: 0.8rem;
    color: var(--brand-ink-muted);
    font-weight: 500;
    margin-left: 6px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header-row h2 {
    margin-bottom: 0;
}

/* --- セクション --- */
.admin-section {
    margin-bottom: 32px;
}

.admin-section h3 {
    font-size: 1.1rem;
    color: var(--brand-ink);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-primary-soft);
}

/* --- 統計カード --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--brand-ink-soft);
    margin-top: 4px;
}

/* --- テーブル --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--brand-line);
}

.admin-table th {
    background: var(--brand-cream);
    font-weight: 700;
    color: var(--brand-ink);
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background: var(--brand-cream);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- バッジ --- */
.badge-active {
    display: inline-block;
    padding: 3px 10px;
    background: var(--brand-secondary-soft);
    color: var(--brand-secondary);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-inactive {
    display: inline-block;
    padding: 3px 10px;
    background: #F3F4F6;
    color: #9CA3AF;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

.qr-key-display {
    font-size: 0.7rem;
    background: var(--brand-cream);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}

.qr-url-display {
    display: block;
    font-size: 0.8rem;
    background: var(--brand-cream);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    line-height: 1.5;
}

/* --- フォーム --- */
.admin-form {
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
    max-width: 680px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-ink);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--brand-line);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.12);
}

textarea.form-input {
    resize: vertical;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn .form-input {
    flex: 1;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.required {
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- ボタン共通 --- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--grad-warm);
    color: #fff;
    box-shadow: 0 3px 10px rgba(237, 92, 57, 0.25);
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    box-shadow: 0 6px 18px rgba(237, 92, 57, 0.35);
}

.btn-secondary {
    background: #fff;
    color: var(--brand-ink);
    border: 1.5px solid var(--brand-line);
}

.btn-secondary:hover {
    background: var(--brand-cream);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; }

/* --- エラー --- */
.error-box {
    background: #FFF5F5;
    border: 1px solid #FECACA;
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.88rem;
}

/* --- ページネーション --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-link,
.page-current {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.page-link {
    background: var(--brand-surface);
    color: var(--brand-primary);
    border: 1px solid var(--brand-line);
}

.page-link:hover {
    background: var(--brand-primary-soft);
    text-decoration: none;
    border-color: var(--brand-primary);
}

.page-current {
    background: var(--grad-warm);
    color: #fff;
    border: 1px solid transparent;
}

/* --- CSV出力グリッド --- */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.export-card {
    background: var(--brand-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-line);
}

.export-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--brand-ink);
}

.export-card p {
    font-size: 0.82rem;
    color: var(--brand-ink-soft);
    margin-bottom: 16px;
}

/* --- 混雑ステータス（管理画面用） --- */
.crowd-low { color: var(--brand-secondary); font-weight: 700; }
.crowd-medium { color: var(--warning); font-weight: 700; }
.crowd-high { color: var(--danger); font-weight: 700; }
.crowd-unknown { color: var(--brand-ink-muted); }

/* --- レスポンシブ（管理画面） --- */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .sidebar-header {
        padding: 12px 16px;
        border-bottom: none;
        border-right: 1px solid var(--sidebar-bg-soft);
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 4px 0;
    }

    .sidebar-nav li a {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar-nav li a.active {
        border-left: none;
        border-bottom-color: var(--brand-primary);
    }

    .sidebar-footer {
        border-top: none;
        padding: 8px 16px;
    }

    .admin-main {
        padding: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   カテゴリ機能 + 写真機能 (2026-05-15 追加)
   ========================================= */

/* カテゴリ選択カード */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}
.category-card:hover {
    border-color: #f97316;
    background: #fff7ed;
}
.category-card.is-selected {
    border-color: #ea580c;
    background: #ffedd5;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}
.category-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.category-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 4px;
}
.category-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}
.category-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    display: block;
}

/* カテゴリピル（タイトル横の小さなバッジ） */
.category-pill {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

/* プレビューボタン */
.btn-preview {
    display: inline-block;
    padding: 8px 14px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: background 0.15s ease;
}
.btn-preview:hover {
    background: #0284c7;
    color: #fff;
}
.btn-preview.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* 一覧サムネ */
.spot-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid #e2e8f0;
}
.spot-thumb-empty {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 1.4rem;
}

/* 写真アップロード UI */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 10px 0 16px 0;
}
.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.photo-del-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}
.photo-del-btn:hover {
    background: rgba(185, 28, 28, 1);
}
.photo-upload-area input[type="file"] {
    display: block;
    margin-bottom: 8px;
    width: 100%;
}

/* =========================================
   イベント詳細フォーム (2026-05-15 追加)
   ========================================= */

.form-section {
    background: #fff;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid #fb923c;
}
.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

/* 開催形態ラジオ */
.format-radio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}
.format-radio-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.format-radio-item:hover {
    border-color: #fb923c;
}
.format-radio-item.is-selected {
    border-color: #ea580c;
    background: #fff7ed;
}
.format-radio-item input[type="radio"] {
    margin-top: 3px;
    accent-color: #ea580c;
}
.format-radio-item strong {
    display: block;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.format-hint {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.4;
}

/* 曜日チップ */
.dow-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dow-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #475569;
    transition: all 0.15s ease;
}
.dow-chip:hover {
    border-color: #fb923c;
}
.dow-chip.is-selected {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}
.dow-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   店舗ポータル + アカウント発行 (2026-05-15 追加)
   ========================================= */

/* 統計カード */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid #ea580c;
}
.stat-label {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}
.stat-unit {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* コンテンツサマリーグリッド */
.content-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.summary-block {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.summary-block h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #1e293b;
}
.summary-count {
    color: #ea580c;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 6px 0 12px 0;
}
.summary-block .btn { margin-right: 6px; }

/* アカウント発行 UI */
.account-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.account-section-title {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: #0c4a6e;
}
.account-issued-box {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
}
.account-issued-box h4 {
    margin: 0 0 8px 0;
    color: #065f46;
}
.credentials-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.credentials-table th {
    text-align: left;
    padding: 6px 12px 6px 0;
    color: #475569;
    font-weight: 600;
    width: 130px;
    vertical-align: top;
}
.credentials-table td {
    padding: 6px 0;
}
.credentials-table code {
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    user-select: all;
}
.account-status-box {
    background: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0;
}

/* お知らせ一覧 / メニュー一覧 */
.announcement-list { display: flex; flex-direction: column; gap: 10px; }
.announcement-row {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ann-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ann-excerpt { color: #475569; margin: 4px 0 8px 0; font-size: 0.9rem; }
.ann-actions { display: flex; gap: 8px; }

.menu-list-admin { display: flex; flex-direction: column; gap: 10px; }
.menu-row {
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 14px;
    align-items: center;
}
.menu-photo-cell img {
    width: 70px; height: 70px; object-fit: cover; border-radius: 8px;
}
.menu-photo-empty {
    width: 70px; height: 70px; display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #cbd5e1; border-radius: 8px;
}
.menu-info { flex: 1; }
.menu-info strong { font-size: 1rem; margin-right: 8px; }
.menu-price { color: #ea580c; font-weight: 600; }
.menu-desc-admin { color: #64748b; font-size: 0.85rem; margin: 4px 0 0 0; }
.menu-actions { display: flex; flex-direction: column; gap: 4px; }

/* ログインカード */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* =========================================
   テーマ選択UI (2026-05-15 追加)
   ========================================= */

.theme-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.theme-preset-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}
.theme-preset-card:hover {
    border-color: #94a3b8;
}
.theme-preset-card.is-selected {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}
.theme-preset-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.theme-preset-swatch {
    display: block;
    width: 100%;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--p) 0%, var(--a) 100%);
    margin-bottom: 6px;
}
.theme-preset-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
}
.theme-custom-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed 0%, #fce7f3 50%, #ddd6fe 100%);
}
.theme-custom-card .theme-preset-label {
    font-size: 0.9rem;
}


/* サイドバー: ラリーコンテキスト表示 */
.sidebar-nav .sidebar-context-label {
    margin-top: 14px;
    padding: 6px 16px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    text-transform: none;
    letter-spacing: 0.02em;
    border-top: 1px solid rgba(255,255,255,0.12);
    pointer-events: none;
}


/* === [2026-05-15] 管理画面リフレッシュ === */
/* オレンジの太い左ラインを撤去、洗練されたカード風デザインに統一 */

/* セクションカード */
.form-section,
.admin-main > .info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 16px;
    border-left: none !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 6px 20px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.form-section:hover {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 28px rgba(15, 23, 42, 0.06);
}

/* セクションタイトル: 左に小さなオレンジバー */
.form-section-title {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 22px 0;
    padding: 0 0 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: 0.01em;
}
.form-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 16px;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
}

/* フォーム要素 */
.form-group {
    margin-bottom: 18px;
}
.form-group label,
.admin-main label:not(.format-radio-item):not(.dow-chip) {
    display: block;
    font-weight: 600;
    color: #334155;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    text-transform: none;
}
.form-input,
.admin-main input[type="text"]:not(.btn),
.admin-main input[type="email"]:not(.btn),
.admin-main input[type="number"]:not(.btn),
.admin-main input[type="date"]:not(.btn),
.admin-main input[type="datetime-local"]:not(.btn),
.admin-main input[type="password"]:not(.btn),
.admin-main input[type="url"]:not(.btn),
.admin-main input[type="tel"]:not(.btn),
.admin-main select,
.admin-main textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}
.form-input:focus,
.admin-main input:not(.btn):focus,
.admin-main select:focus,
.admin-main textarea:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
    background: #ffffff;
}
.form-input:disabled,
.admin-main input:disabled,
.admin-main textarea:disabled,
.admin-main select:disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}
.form-input[readonly] {
    background: #f8fafc;
    color: #475569;
}
.admin-main textarea {
    min-height: 110px;
    resize: vertical;
}

/* 必須マーク */
.required {
    display: inline-block;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 6px;
    letter-spacing: 0.04em;
}

/* セレクタブル系（ラジオ・チェックボックスのカード型UI） */
.format-radio-item {
    border-radius: 12px;
    border-width: 1.5px;
    border-color: #e2e8f0;
    background: #ffffff;
    padding: 14px 16px;
    transition: all 0.15s ease;
}
.format-radio-item:hover {
    border-color: #fdba74;
    background: #fff7ed;
}
.format-radio-item.is-selected {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.08);
}

/* 統計カード: オレンジ左バーから上下にグラデの帯に */
.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    border-left: none !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 6px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
    border-radius: 14px 14px 0 0;
}
.stat-card:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 28px rgba(15, 23, 42, 0.07);
}

/* ボタン */
.admin-main .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 18px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    border: 1.5px solid transparent;
}
.admin-main .btn-primary {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}
.admin-main .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    filter: brightness(1.04);
}
.admin-main .btn-secondary {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}
.admin-main .btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.admin-main .btn-danger {
    background: #ffffff;
    color: #b91c1c;
    border-color: #fecaca;
}
.admin-main .btn-danger:hover {
    background: #fef2f2;
    border-color: #f87171;
}
.admin-main .btn-sm {
    padding: 5px 12px;
    font-size: 0.82rem;
}
.admin-main .btn-lg {
    padding: 12px 24px;
    font-size: 1.02rem;
}

/* テーブル */
.admin-main table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 6px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-collapse: separate !important;
    border-spacing: 0;
}
.admin-main table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}
.admin-main table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 0.92rem;
}
.admin-main table tr:last-child td {
    border-bottom: none;
}
.admin-main table tr:hover td {
    background: #fafbfc;
}

/* ヘッダー部分 */
.admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.admin-header-row h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
}
.admin-header-row h2 small {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
    letter-spacing: 0;
}

/* メイン余白 */
.admin-main {
    background: #fafbfc;
}

/* form-row */
.form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.form-row > .form-group {
    flex: 1;
    min-width: 220px;
}
.form-help {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 6px 0 0 0;
    line-height: 1.5;
}
/* === [2026-05-15] 管理画面リフレッシュ END === */

/* === [2026-06-08] 店舗ポータル モバイル最適化 === */
@media (max-width: 768px) {
    /* 店舗ポータルのメニュー部分を「アプリ風メニューカード」に */
    .spot-sidebar {
        flex-direction: column;
        align-items: stretch;     /* 縦中央寄せをやめ、上部の余分な隙間を解消 */
    }
    .spot-sidebar .sidebar-header {
        padding: 14px 16px 10px;  /* 上の隙間を詰める */
        border: none;
    }
    .spot-sidebar .sidebar-brand { margin-bottom: 8px; }
    .spot-sidebar .sidebar-header p { margin-top: 2px; }

    /* ナビ＝メニューボタンを2列グリッドで並べる */
    .spot-sidebar .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 4px 16px 14px;
    }
    .spot-sidebar .sidebar-nav li { display: block; margin: 0; }
    .spot-sidebar .sidebar-nav li a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 46px;
        padding: 10px 8px;
        background: var(--sidebar-bg-soft);
        border: none;
        border-radius: 10px;
        color: #e2e8f0;
        font-size: 0.86rem;
        font-weight: 600;
        line-height: 1.25;
    }
    .spot-sidebar .sidebar-nav li a:hover,
    .spot-sidebar .sidebar-nav li a.active {
        background: var(--brand-primary);
        color: #fff;
        border: none;
    }

    /* ログアウトは最下部のフッターに */
    .spot-sidebar .sidebar-footer {
        order: 99;
        border-top: 1px solid var(--sidebar-bg-soft);
        padding: 12px 16px;
        text-align: center;
    }
    .spot-sidebar .sidebar-footer .logout-link {
        display: inline-block;
        padding: 8px 18px;
        border: 1px solid rgba(252,165,165,0.5);
        border-radius: 8px;
        font-weight: 600;
    }

    /* 統計カードは2カラム×2列に */
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card { padding: 14px 14px; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: 0.78rem; }

    /* お知らせ/メニュー/写真サマリーも見やすく2カラム */
    .content-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
/* === [2026-06-08] END === */


/* =========================================================
   [2026-06-10] アイコン廃止・洗練リファイン
   絵文字アイコンを撤去し、余白・字間・カスタム選択マークで
   見せるソリッドで上品なフォーム UI に統一する。
   ========================================================= */

/* --- セクション見出し: 絵文字を外し、細いアクセントバー＋字間で構成 --- */
.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0f172a;
    padding: 0 0 12px 16px;
}
.form-section-title::before {
    top: 1px;
    bottom: 14px;
    width: 3px;
    border-radius: 2px;
    background: #ea580c;            /* グラデを廃しソリッドに */
}

/* --- 用途カテゴリ: アイコンなしの選択カード（左上にカスタムラジオ印） --- */
.category-icon { display: none !important; }

.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}
.category-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 3px;
    padding: 15px 16px 15px 42px;   /* 左に選択マーク用スペース */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
/* カスタムラジオ印（リング） */
.category-card::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 16px;
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.category-card:hover {
    border-color: #fdba74;
    background: #fff;
    box-shadow: 0 6px 18px rgba(234,88,12,0.07);
}
.category-card:hover::after { border-color: #fb923c; }
.category-card.is-selected {
    border-color: #ea580c;
    background: #fff;
    box-shadow: 0 0 0 1px #ea580c, 0 8px 22px rgba(234,88,12,0.10);
}
.category-card.is-selected::after {
    border-color: #ea580c;
    background: #ea580c;
    box-shadow: inset 0 0 0 3px #fff;   /* 中央にオレンジのドット */
}
.category-label {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1px;
}
.category-desc { font-size: 0.78rem; line-height: 1.5; }

/* --- 開催形態ラジオ: 既存ネイティブラジオを上品なリングに統一 --- */
.format-radio-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.format-radio-item:hover { border-color: #fdba74; }
.format-radio-item.is-selected {
    border-color: #ea580c;
    background: #fff;
    box-shadow: 0 0 0 1px #ea580c, 0 8px 22px rgba(234,88,12,0.10);
}

/* --- テーマ: カスタムカードの装飾グラデを廃し、点線で“追加”を示す --- */
.theme-preset-card { border: 1px solid #e2e8f0; border-radius: 12px; }
.theme-preset-card.is-selected {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a, 0 8px 20px rgba(15,23,42,0.10);
}
.theme-custom-card {
    background: #fff;
    border-style: dashed;
    border-color: #cbd5e1;
}
.theme-custom-card .theme-preset-label { color: #475569; }

/* --- サイドバー: 絵文字を外したコンテキスト見出しの体裁を調整 --- */
.sidebar-nav .sidebar-context-label {
    text-transform: none;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* === [2026-06-10] END === */
