/* style.css - レジスタレット検索・登録システム */
:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 50px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.5));
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.title-kawaii {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #fef08a, #facc15, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 14px rgba(250, 204, 21, 0.4);
    line-height: 1.15;
}

/* ナビゲーションタブ */
.nav-tabs {
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* グラスモーフィズムカード */
.card-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f1f5f9;
}

.panel-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* フォームコントロール */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

input[type="text"],
input[type="number"],
select,
textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn-submit:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: var(--accent-red);
    color: white;
}

/* ジェムカート＆所持チェッカーGrid */
.gem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.gem-item-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gem-item-card.owned {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(20, 83, 45, 0.2);
}

.gem-item-card.unowned {
    border-color: rgba(239, 68, 68, 0.3);
}

.gem-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.gem-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.gem-category-tag {
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.gem-level-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.gem-effect {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
}

.gem-drop-locations {
    font-size: 0.8rem;
    color: #e2e8f0;
    margin-top: 6px;
}

.drop-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    display: inline-block;
    margin-top: 4px;
}

/* 所持スイッチ toggle */
.ownership-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-badge.status-owned {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-badge.status-unowned {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-green);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* ダンジョン一括チェックボックス (Admin画面) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.5);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: rgba(51, 65, 85, 0.8);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
}

/* 検索フィルターバー */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.dungeon-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.filter-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.filter-btn-group .filter-btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dungeon-info-text {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-align: right;
}

.search-input-wrap {
    flex: 1;
    min-width: 200px;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--accent-blue);
    color: #0f172a;
    font-weight: 700;
}

/* 一括操作（折りたたみ） */
.bulk-action-details {
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.bulk-action-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.bulk-action-summary::-webkit-details-marker {
    display: none;
}

.bulk-action-summary:hover {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-primary);
}

.bulk-action-summary .chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.bulk-action-details[open] .bulk-action-summary {
    color: var(--text-primary);
}

.bulk-action-details[open] .bulk-action-summary .chevron {
    transform: rotate(180deg);
}

.bulk-action-body {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.3);
}

.btn-bulk {
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-bulk.own {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.btn-bulk.own:hover {
    background: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-bulk.unown {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-bulk.unown:hover {
    background: var(--accent-red);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 非表示ユーティリティ */
.hidden {
    display: none !important;
}

/* アカウント認証ステータスバー */
.auth-bar-panel {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}

.auth-bar-panel.auth-logged-in {
    border-left: 4px solid var(--accent-green);
    background: rgba(20, 83, 45, 0.15);
}

.auth-bar-panel.auth-guest {
    border-left: 4px solid var(--accent-blue);
}

.auth-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-name-text {
    white-space: nowrap;
    font-size: 0.95rem;
}

.auth-note {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.auth-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.auth-badge.guest {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
}

.btn-login-link {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-login-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* テーブルスタイル */
.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.data-table th {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.08);
}

/* マスタテーブル用の各列の制御 */
.card-master-table .col-drag {
    width: 40px;
    text-align: center;
}

.card-master-table .col-name {
    min-width: 150px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.card-master-table .col-category {
    min-width: 120px;
}

.card-master-table .col-level {
    min-width: 70px;
}

.card-master-table .col-effect {
    min-width: 240px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    word-break: break-word;
}

.card-master-table .col-drops {
    min-width: 200px;
    font-size: 0.82rem;
    line-height: 1.6;
}

.card-master-table .col-actions {
    min-width: 120px;
    width: 130px;
    white-space: nowrap;
}

/* バッジとアクションボタンの見た目 */
.level-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
}

.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.action-buttons .reorder-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.action-buttons .delete-card-btn {
    margin-left: 4px;
}

/* ========================================== */
/* 1個1行 (スリムリスト) デザイン              */
/* ========================================== */
.gem-row-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gem-row-item {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.gem-row-item:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

.gem-row-item.owned {
    border-left: 4px solid var(--accent-green);
    background: rgba(20, 83, 45, 0.15);
}

.gem-row-item.unowned {
    border-left: 4px solid var(--accent-red);
}

.gem-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.gem-row-title {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gem-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-detail {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-blue);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-detail:hover {
    background: var(--accent-blue);
    color: #0f172a;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* モーダルポップアップ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.25s ease;
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* ドラッグ＆ドロップ スタイル */
.drag-handle {
    cursor: grab;
    font-size: 1.2rem;
    color: var(--text-muted);
    user-select: none;
    padding: 0 4px;
}

.drag-handle:active {
    cursor: grabbing;
}

tr.draggable-row {
    transition: background 0.15s ease;
}

tr.draggable-row.dragging {
    opacity: 0.4;
    background: rgba(56, 189, 248, 0.2) !important;
}

tr.draggable-row.drag-over {
    border-top: 3px solid var(--accent-blue) !important;
    background: rgba(56, 189, 248, 0.1) !important;
}

/* ========================================== */
/* レスポンシブ対応 (スマートフォン画面最適化)  */
/* ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* 1. ヘッダー＆ロゴ */
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 12px 0;
        margin-bottom: 16px;
    }

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

    .brand h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
    }

    .title-kawaii {
        font-size: 1.65rem;
    }

    .brand p {
        font-size: 0.75rem !important;
    }

    /* 2. ナビゲーションタブ */
    .nav-tabs {
        width: 100%;
        display: flex;
        gap: 6px;
        padding: 6px;
        box-sizing: border-box;
    }

    .tab-btn {
        flex: 1;
        min-width: 0;
        padding: 9px 4px;
        font-size: 0.78rem;
        font-weight: 700;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 3px;
        text-align: center;
        white-space: nowrap;
    }

    .tab-btn span {
        font-size: 1.15rem;
        line-height: 1;
    }

    /* 3. カードパネル */
    .card-panel {
        padding: 16px 12px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .panel-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    /* 4. 検索バー・フィルター */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dungeon-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .filter-btn-group {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 4px;
    }

    .filter-btn-group .filter-btn {
        flex: 1;
        min-width: 0;
        padding: 6px 2px;
        font-size: 0.78rem;
        text-align: center;
        white-space: nowrap;
    }

    .search-input-wrap {
        width: 100%;
    }

    .filter-bar select {
        width: 100% !important;
    }

    /* 5. 1行1個スリムリスト (.gem-row-item) スマホ対応 */
    .gem-category-tag {
        display: none !important;
    }

    .gem-row-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
    }

    .gem-row-left {
        width: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .gem-row-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.88rem;
        flex: 1;
        min-width: 0;
        line-height: 1.3;
    }

    .gem-row-actions {
        width: auto;
        display: flex;
        align-items: center;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        flex-shrink: 0;
    }

    .btn-detail {
        padding: 4px 8px;
        font-size: 0.78rem;
        white-space: nowrap;
        margin-left: auto;
    }

    /* 6. Adminダンジョン別チェックボックスグリッド */
    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
        padding: 8px;
        max-height: 280px;
    }

    .checkbox-item {
        padding: 6px 8px;
        font-size: 0.82rem;
    }

    /* 7. フォームグリッド */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================== */
/* 管理画面（admin.php）での広告完全非表示   */
/* ========================================== */
body.admin-page .adsbygoogle,
body.admin-page ins.adsbygoogle,
body.admin-page .ads-container,
body.admin-page [class*="adsbygoogle"],
body.admin-page [id*="google_ads"],
body.admin-page .ad-container,
body.admin-page .ad-banner {
    display: none !important;
}

/* ========================================== */
/* 情報募集セクション＆スクショ投稿スタイル   */
/* ========================================== */
.wanted-section {
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-md, 10px);
    padding: 14px;
    margin-top: 16px;
}

.wanted-badge {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

#wanted-file-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border, #334155);
    border-radius: 8px;
    padding: 8px;
    width: 100%;
}

@media (max-width: 380px) {
    .wanted-section {
        padding: 10px;
    }
    
    #wanted-file-input {
        font-size: 0.75rem;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* --------------------------------------------------
 * 実験なび 情報募集機能 強化スタイル
 * -------------------------------------------------- */

/* 3ステップガイド コンテナ */
.step-guide-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

/* 各ステップカード */
.step-card {
    background: var(--card-bg, rgba(30, 41, 59, 0.7));
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 10px);
    padding: 16px;
    position: relative;
    box-shadow: var(--shadow, 0 10px 25px -5px rgba(0, 0, 0, 0.4));
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: var(--accent-blue, #38bdf8);
    transform: translateY(-2px);
}

.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 0.95rem;
    color: var(--accent-blue, #38bdf8);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-card p {
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
}

/* モバイル用ステップカード スタック調整 */
@media (max-width: 768px) {
    .step-guide-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* 情報募集案内バナー */
.wanted-notice-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: var(--radius-md, 10px);
    padding: 14px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

.wanted-notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wanted-notice-icon {
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.wanted-notice-text h3 {
    font-size: 0.95rem;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 2px;
}

.wanted-notice-text p {
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
}

.wanted-notice-btn {
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: #ffffff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-md, 10px);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    border: none;
    cursor: pointer;
}

.wanted-notice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

@media (max-width: 600px) {
    .wanted-notice-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .wanted-notice-content {
        flex-direction: column;
    }
    .wanted-notice-btn {
        text-align: center;
        width: 100%;
    }
}

/* 投稿モーダル内の撮影案内ボックス */
.screenshot-instruction-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 10px);
    padding: 12px 15px;
    margin-bottom: 15px;
    text-align: left;
}

.screenshot-instruction-box h4 {
    font-size: 0.88rem;
    color: var(--accent-blue, #38bdf8);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.screenshot-instruction-box ul {
    padding-left: 20px;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.6;
}

/* 高コントラスト投稿ボタン */
.btn-upload-prominent {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upload-prominent:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6) !important;
}

/* 情報募集バッジ (リスト内) */
.wanted-card-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}



