/* ============================================
   StickerFactory — なつかしシール工房
   Retro Japanese Sticker Aesthetic
   ============================================ */

:root {
    /* 配色：レトロ駄菓子屋カラー */
    --col-bg: #f5f0e3;
    --col-bg-warm: #ece5d3;
    --col-bg-card: #fffcf4;
    --col-text: #2e2a24;
    --col-text-muted: #7a7265;
    --col-red: #d63031;
    --col-red-dark: #b51b1c;
    --col-blue: #2e6bc6;
    --col-yellow: #f0b429;
    --col-yellow-light: #fce588;
    --col-green: #38a169;
    --col-pink: #e84393;
    --col-gold: #c79b2a;
    --col-silver: #a0a0a0;
    --col-accent: var(--col-red);
    --col-border: #c9bfa8;
    --col-border-strong: #8a7e6e;
    
    /* フォント */
    --font-main: 'Zen Maru Gothic', 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
    --font-pixel: 'DotGothic16', monospace;
    
    /* 間隔（あえて不均一） */
    --sp-xs: 6px;
    --sp-sm: 11px;
    --sp-md: 18px;
    --sp-lg: 28px;
    --sp-xl: 42px;
    --sp-xxl: 64px;
    
    /* 角丸（微妙に揺らす） */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-card: 6px 12px 8px 10px;
}

/* ============ リセット ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--col-bg);
    color: var(--col-text);
    line-height: 1.7;
    min-height: 100vh;
    /* 紙のテクスチャ風ノイズ */
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}
a { color: var(--col-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ============ ヘッダー ============ */
.site-header {
    background: var(--col-text);
    color: #fff;
    border-bottom: 4px solid var(--col-yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--sp-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900;
}
.logo-icon {
    font-size: 1.4rem;
    color: var(--col-yellow);
    animation: logo-spin 8s linear infinite;
}
@keyframes logo-spin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}
.logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}
.logo-sub {
    font-size: 0.68rem;
    opacity: 0.65;
    font-weight: 400;
    margin-left: 2px;
    display: none;
}
@media (min-width: 640px) {
    .logo-sub { display: inline; }
}

.main-nav {
    display: flex;
    gap: 3px;
    align-items: center;
}
.nav-item {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
    white-space: nowrap;
}
.nav-item:hover {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}
.nav-item--accent {
    background: var(--col-red);
    color: #fff !important;
}
.nav-item--accent:hover {
    background: var(--col-red-dark);
}
.nav-item--admin {
    color: var(--col-yellow) !important;
    border: 1px solid var(--col-yellow);
}
.nav-item--muted {
    opacity: 0.55;
    font-weight: 400;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--col-text);
        flex-direction: column;
        padding: var(--sp-md);
        border-bottom: 3px solid var(--col-yellow);
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .nav-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* ============ メインエリア ============ */
.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--sp-lg) var(--sp-md) var(--sp-xxl);
    min-height: calc(100vh - 200px);
}

/* ============ フラッシュメッセージ ============ */
.flash-message {
    padding: var(--sp-sm) var(--sp-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    animation: flash-in 0.3s ease-out;
}
@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid var(--col-green); }
.flash-error { background: #f8d7da; color: #721c24; border-left: 4px solid var(--col-red); }
.flash-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--col-yellow); }
.flash-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--col-blue); }
.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
}

/* ============ ヒーローセクション ============ */
.hero {
    text-align: center;
    padding: var(--sp-xl) 0 var(--sp-lg);
    position: relative;
}
.hero-badge {
    display: inline-block;
    background: var(--col-yellow-light);
    color: var(--col-text);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: var(--sp-sm);
    border: 2px solid var(--col-yellow);
    letter-spacing: 0.08em;
    transform: rotate(-1.5deg);
}
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--sp-sm);
    color: var(--col-text);
}
.hero h1 em {
    font-style: normal;
    color: var(--col-red);
    position: relative;
}
.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 8px;
    background: var(--col-yellow-light);
    z-index: -1;
    transform: rotate(-0.5deg);
}
.hero-desc {
    font-size: 1rem;
    color: var(--col-text-muted);
    max-width: 540px;
    margin: 0 auto var(--sp-lg);
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: var(--sp-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ ボタン ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--col-red);
    color: #fff;
    border-color: var(--col-red-dark);
    box-shadow: 0 3px 0 var(--col-red-dark);
}
.btn-primary:hover {
    background: var(--col-red-dark);
    color: #fff;
    box-shadow: 0 1px 0 var(--col-red-dark);
    transform: translateY(2px);
}
.btn-secondary {
    background: var(--col-bg-card);
    color: var(--col-text);
    border-color: var(--col-border);
    box-shadow: 0 3px 0 var(--col-border);
}
.btn-secondary:hover {
    background: var(--col-bg-warm);
    box-shadow: 0 1px 0 var(--col-border);
    transform: translateY(2px);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
}
.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}
.btn-gold {
    background: linear-gradient(135deg, var(--col-yellow), var(--col-gold));
    color: var(--col-text);
    border-color: var(--col-gold);
    box-shadow: 0 3px 0 #a07d1c;
}
.btn-danger {
    background: #fff;
    color: var(--col-red);
    border-color: var(--col-red);
}

/* ============ カード ============ */
.card {
    background: var(--col-bg-card);
    border: 2px solid var(--col-border);
    border-radius: var(--radius-card);
    padding: var(--sp-lg);
    position: relative;
}
.card + .card { margin-top: var(--sp-md); }
.card-header {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: var(--sp-sm);
    padding-bottom: var(--sp-xs);
    border-bottom: 2px dashed var(--col-border);
}
.card--highlight {
    border-color: var(--col-red);
    border-width: 3px;
}
.card--highlight::before {
    content: '★';
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--col-red);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============ シールギャラリーグリッド ============ */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--sp-md);
    margin: var(--sp-lg) 0;
}
.sticker-card {
    background: var(--col-bg-card);
    border: 2px solid var(--col-border);
    border-radius: 6px 10px 8px 12px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.sticker-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 4px 6px 0 var(--col-border);
}
.sticker-card:nth-child(3n+2) {
    transform: rotate(0.5deg);
}
.sticker-card:nth-child(3n+2):hover {
    transform: translateY(-4px) rotate(1deg);
}
.sticker-card:nth-child(5n) {
    transform: rotate(-0.8deg);
}
.sticker-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--col-border);
}
.sticker-info {
    padding: var(--sp-sm);
}
.sticker-title {
    font-weight: 900;
    font-size: 0.88rem;
    margin-bottom: 2px;
}
.sticker-meta {
    font-size: 0.72rem;
    color: var(--col-text-muted);
}
.sticker-tag {
    display: inline-block;
    background: var(--col-yellow-light);
    font-size: 0.65rem;
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 4px;
}

/* ============ 生成ページ ============ */
.gen-section {
    margin-bottom: var(--sp-xl);
}
.gen-section h2 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: var(--sp-md);
    padding-left: var(--sp-sm);
    border-left: 5px solid var(--col-red);
}
.gen-step {
    display: flex;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
    align-items: flex-start;
}
.gen-step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--col-red);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 3px 0 var(--col-red-dark);
}
.gen-step-body h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 4px;
}
.gen-step-body p {
    color: var(--col-text-muted);
    font-size: 0.88rem;
}

.prompt-box {
    background: var(--col-text);
    color: #e8dcc8;
    padding: var(--sp-md);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    line-height: 1.8;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    white-space: pre-wrap;
    word-break: break-all;
}
.prompt-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--col-yellow);
    color: var(--col-text);
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
}
.prompt-copy-btn:hover { background: var(--col-yellow-light); }

/* ============ フォーム ============ */
.form-group {
    margin-bottom: var(--sp-md);
}
.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--col-text);
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid var(--col-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.9rem;
    background: var(--col-bg-card);
    color: var(--col-text);
    transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--col-blue);
    box-shadow: 0 0 0 3px rgba(46, 107, 198, 0.15);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}
.form-help {
    font-size: 0.75rem;
    color: var(--col-text-muted);
    margin-top: 3px;
}
.form-error {
    color: var(--col-red);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 3px;
}

/* アップロードエリア */
.upload-area {
    border: 3px dashed var(--col-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl) var(--sp-lg);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--col-bg-warm);
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--col-blue);
    background: rgba(46, 107, 198, 0.05);
}
.upload-area-icon {
    font-size: 2.5rem;
    margin-bottom: var(--sp-xs);
}
.upload-area-text {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.upload-area-hint {
    font-size: 0.75rem;
    color: var(--col-text-muted);
}

/* ============ 認証ページ ============ */
.auth-page {
    max-width: 420px;
    margin: var(--sp-xl) auto;
}
.auth-page .card {
    padding: var(--sp-xl) var(--sp-lg);
}
.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--sp-lg);
}
.auth-footer {
    text-align: center;
    margin-top: var(--sp-md);
    font-size: 0.82rem;
    color: var(--col-text-muted);
}

/* ============ プロフィール ============ */
.profile-header {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    margin-bottom: var(--sp-lg);
    flex-wrap: wrap;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--col-yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid var(--col-yellow);
}
.profile-stats {
    display: flex;
    gap: var(--sp-lg);
}
.stat-item {
    text-align: center;
}
.stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--col-red);
    display: block;
}
.stat-label {
    font-size: 0.72rem;
    color: var(--col-text-muted);
}

/* ============ 管理画面 ============ */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--sp-lg);
    min-height: calc(100vh - 200px);
}
@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}
.admin-sidebar {
    background: var(--col-bg-card);
    border: 2px solid var(--col-border);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
    height: fit-content;
    position: sticky;
    top: 80px;
}
.admin-sidebar a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--col-text);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: var(--col-yellow-light);
    text-decoration: none;
}
.admin-content {
    min-width: 0;
}
.admin-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: var(--sp-md);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

/* ダッシュボードカード */
.dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}
.dash-card {
    background: var(--col-bg-card);
    border: 2px solid var(--col-border);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
    text-align: center;
}
.dash-card-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--col-red);
}
.dash-card-label {
    font-size: 0.78rem;
    color: var(--col-text-muted);
    font-weight: 700;
}
.dash-card:nth-child(2) .dash-card-num { color: var(--col-blue); }
.dash-card:nth-child(3) .dash-card-num { color: var(--col-green); }
.dash-card:nth-child(4) .dash-card-num { color: var(--col-gold); }

/* テーブル */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    background: var(--col-bg-warm);
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--col-border);
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--col-border);
    vertical-align: middle;
}
.data-table tr:hover td {
    background: rgba(240, 180, 41, 0.06);
}
.data-table .thumb-sm {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

/* ============ Stripe設定セクション ============ */
.stripe-section {
    border: 2px solid var(--col-gold);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
    background: linear-gradient(135deg, #fffcf4 0%, #fef9e7 100%);
}
.stripe-section h3 {
    color: var(--col-gold);
    font-size: 1.1rem;
    margin-bottom: var(--sp-md);
}
.stripe-mode-toggle {
    display: flex;
    gap: 2px;
    margin-bottom: var(--sp-md);
    background: var(--col-bg-warm);
    border-radius: var(--radius-sm);
    padding: 3px;
    width: fit-content;
}
.stripe-mode-btn {
    padding: 6px 18px;
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    transition: 0.15s;
}
.stripe-mode-btn.active {
    background: var(--col-bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============ プラン表示 ============ */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-md);
    margin: var(--sp-lg) 0;
}
.plan-card {
    background: var(--col-bg-card);
    border: 2px solid var(--col-border);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
    text-align: center;
    transition: transform 0.15s;
}
.plan-card:hover { transform: translateY(-3px); }
.plan-card--popular {
    border-color: var(--col-red);
    border-width: 3px;
    position: relative;
}
.plan-card--popular::before {
    content: '人気No.1';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--col-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 14px;
    border-radius: 10px;
}
.plan-name {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: var(--sp-xs);
}
.plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--col-red);
    margin-bottom: var(--sp-sm);
}
.plan-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--col-text-muted);
}
.plan-features {
    text-align: left;
    font-size: 0.82rem;
    margin-bottom: var(--sp-md);
}
.plan-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--col-green);
    font-weight: 900;
}

/* ============ ページネーション ============ */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: var(--sp-lg) 0;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--col-bg-card);
    border: 2px solid var(--col-border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--col-text);
}
.page-link.active {
    background: var(--col-red);
    color: #fff;
    border-color: var(--col-red);
}

/* ============ ステップカード（トップページ） ============ */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-md);
    margin: var(--sp-lg) 0;
}
.how-card {
    background: var(--col-bg-card);
    border: 2px solid var(--col-border);
    border-radius: 10px 6px 12px 8px;
    padding: var(--sp-lg) var(--sp-md);
    position: relative;
}
.how-card:nth-child(2) { transform: rotate(0.3deg); }
.how-card:nth-child(3) { transform: rotate(-0.4deg); }
.how-num {
    font-family: var(--font-pixel);
    font-size: 2.5rem;
    color: var(--col-red);
    opacity: 0.2;
    position: absolute;
    top: 8px;
    right: 14px;
    line-height: 1;
}
.how-card h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: var(--sp-xs);
}
.how-card p {
    font-size: 0.85rem;
    color: var(--col-text-muted);
    line-height: 1.7;
}

/* ============ セクション ============ */
.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--sp-xs);
}
.section-sub {
    text-align: center;
    color: var(--col-text-muted);
    font-size: 0.88rem;
    margin-bottom: var(--sp-lg);
}

/* ============ フッター ============ */
.site-footer {
    background: var(--col-text);
    color: rgba(255,255,255,0.6);
    margin-top: var(--sp-xxl);
    border-top: 4px solid var(--col-yellow);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--sp-xl) var(--sp-md) var(--sp-lg);
    text-align: center;
}
.footer-logo {
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: var(--sp-sm);
}
.footer-links {
    display: flex;
    gap: var(--sp-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-md);
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 0.72rem;
    opacity: 0.4;
}

/* ============ ユーティリティ ============ */
.text-center { text-align: center; }
.text-muted { color: var(--col-text-muted); }
.text-sm { font-size: 0.82rem; }
.text-red { color: var(--col-red); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-sm); }
.hidden { display: none; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 900;
    border-radius: 8px;
}
.badge-free { background: var(--col-yellow-light); color: var(--col-gold); }
.badge-pro { background: var(--col-red); color: #fff; }
.badge-admin { background: var(--col-blue); color: #fff; }
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.empty-state {
    text-align: center;
    padding: var(--sp-xxl) var(--sp-lg);
    color: var(--col-text-muted);
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--sp-sm);
    opacity: 0.4;
}
