/* =====================================================
   有田地方 防災掲示板 board.css
   モニターと統一感のあるダーク基調・軽量（重いアニメなし）
   ===================================================== */
:root {
    --bg:          #00070f;
    --bg-card:     rgba(0, 14, 32, 0.92);
    --cyan:        #00f5ff;
    --cyan-dim:    rgba(0, 245, 255, 0.28);
    --amber:       #ffb300;
    --red:         #ff2d55;
    --green:       #39ff14;
    --text:        #dff4ff;
    --text-sub:    rgba(223, 244, 255, 0.6);
    --text-muted:  rgba(223, 244, 255, 0.32);
    --font-display:'Orbitron', monospace;
    --font-body:   'Rajdhani', 'Meiryo', sans-serif;
    --font-mono:   'Share Tech Mono', monospace;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at top, rgba(0, 40, 80, 0.25), transparent 60%);
}

/* ヘッダー */
.bb-header {
    border-bottom: 1px solid var(--cyan-dim);
    background: linear-gradient(180deg, rgba(0, 12, 30, 0.97), rgba(0, 7, 18, 0.95));
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    position: sticky; top: 0; z-index: 10;
}
.bb-header-inner {
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px;
}
.bb-title {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--cyan); text-shadow: 0 0 14px rgba(0, 245, 255, 0.5);
    letter-spacing: 0.5px;
}
.bb-subtitle { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 1px; margin-top: 2px; }
.bb-back {
    font-family: var(--font-mono); font-size: 12px; color: var(--cyan);
    text-decoration: none; white-space: nowrap; opacity: 0.85;
    border: 1px solid var(--cyan-dim); border-radius: 3px; padding: 6px 10px;
}
.bb-back:hover { opacity: 1; background: rgba(0, 245, 255, 0.08); }

/* メイン */
.bb-main { max-width: 760px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.bb-section-title { font-family: var(--font-display); font-size: 14px; color: var(--cyan); margin-bottom: 10px; letter-spacing: 0.5px; }

/* カード */
.bb-card {
    background: var(--bg-card);
    border: 1px solid var(--cyan-dim);
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.06);
}

.bb-note {
    font-size: 12px; color: var(--text-sub); line-height: 1.5;
    background: rgba(255, 179, 0, 0.06); border-left: 3px solid var(--amber);
    padding: 8px 10px; border-radius: 2px; margin-bottom: 14px;
}

/* フォーム */
.bb-field { margin-bottom: 12px; }
.bb-field label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-sub); margin-bottom: 4px; letter-spacing: 1px; }
.bb-field textarea, .bb-field select, .bb-field input[type="file"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cyan-dim);
    border-radius: 3px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 8px 10px;
}
.bb-field textarea { resize: vertical; }
.bb-field textarea:focus, .bb-field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 8px rgba(0, 245, 255, 0.2); }

.bb-preview { margin-top: 8px; }
.bb-preview img { max-width: 100%; max-height: 220px; border-radius: 3px; border: 1px solid var(--cyan-dim); }

/* ハニーポット（非表示） */
.bb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bb-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.bb-btn {
    background: rgba(0, 245, 255, 0.12);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    letter-spacing: 1px; padding: 9px 22px; border-radius: 3px; cursor: pointer;
    transition: background 0.15s;
}
.bb-btn:hover:not(:disabled) { background: rgba(0, 245, 255, 0.22); box-shadow: 0 0 14px rgba(0, 245, 255, 0.25); }
.bb-btn:disabled { opacity: 0.5; cursor: default; }
.bb-status { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }

.bb-btn-ghost {
    background: transparent; border: 1px solid var(--cyan-dim); color: var(--cyan);
    font-family: var(--font-mono); font-size: 12px; padding: 5px 12px; border-radius: 3px; cursor: pointer;
}
.bb-btn-ghost:hover { background: rgba(0, 245, 255, 0.08); }

/* 一覧 */
.bb-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bb-list { display: flex; flex-direction: column; gap: 10px; }
.bb-loading, .bb-empty { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-align: center; padding: 24px; }

.bb-post {
    display: flex; gap: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 255, 0.14);
    border-radius: 4px;
    padding: 10px;
}
.bb-thumb { flex-shrink: 0; }
.bb-thumb img {
    width: 110px; height: 110px; object-fit: cover;
    border-radius: 3px; border: 1px solid var(--cyan-dim); display: block;
    background: #001020;
}
.bb-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bb-post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bb-area {
    font-family: var(--font-mono); font-size: 10px; color: var(--cyan);
    border: 1px solid var(--cyan-dim); border-radius: 2px; padding: 1px 6px;
}
.bb-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.bb-post-comment { font-size: 14px; color: var(--text); line-height: 1.45; word-break: break-word; white-space: pre-wrap; flex: 1; }
.bb-post-foot { margin-top: 6px; }
.bb-del {
    background: transparent; border: 1px solid var(--red);
    color: var(--red); font-family: var(--font-mono); font-size: 11px;
    padding: 3px 12px; border-radius: 2px; cursor: pointer;
}
.bb-del:hover { background: rgba(255, 45, 85, 0.12); }

/* フッター */
.bb-footer {
    max-width: 760px; margin: 0 auto; padding: 20px 16px 40px;
    font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-align: center;
}

/* スマホ */
@media (max-width: 520px) {
    .bb-thumb img { width: 84px; height: 84px; }
    .bb-title { font-size: 16px; }
}
