/* ===== DARK NEON THEME - 秘密の掲示板 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #0a0a0a;
    color: #d0d0d0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; width: 100%; }
.hidden { display: none !important; }

/* ===== モーダル ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 16px; backdrop-filter: blur(8px);
}
.modal {
    background: #1a1a2e; border: 1px solid #00ff8833; border-radius: 12px;
    padding: 32px; max-width: 560px; width: 100%; position: relative;
    animation: modalIn 0.3s ease; box-shadow: 0 0 40px rgba(0, 255, 136, 0.1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; color: #00ff88; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #fff; text-shadow: 0 0 10px #00ff88; }

.terms-modal { max-width: 640px; max-height: 80vh; display: flex; flex-direction: column; }
.terms-modal h2 { font-size: 22px; margin-bottom: 16px; padding-right: 32px; color: #00ff88; }
.terms-content { overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.8; color: #aaa; padding-right: 8px; }
.terms-content h3 { font-size: 15px; font-weight: 700; margin-top: 20px; margin-bottom: 8px; color: #00ff88; }
.terms-content h3:first-child { margin-top: 0; }
.terms-content ul { padding-left: 20px; margin-bottom: 8px; }
.terms-content li { margin-bottom: 4px; }
.modal-ok-btn {
    display: block; width: 100%; margin-top: 16px; padding: 12px;
    background: #00ff88; color: #0a0a0a; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
    text-shadow: none; transition: all 0.2s;
}
.modal-ok-btn:hover { background: #00cc6a; box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }

.qr-zoom-modal { max-width: 400px; padding: 16px; text-align: center; }
.qr-zoom-modal img { max-width: 100%; max-height: 70vh; border-radius: 8px; }

/* ===== ヘッダー ===== */
.header {
    background: linear-gradient(180deg, #0d0d1a 0%, #0a0a0a 100%);
    color: #00ff88; padding: 28px 0 24px; text-align: center;
    border-bottom: 2px solid #00ff8844;
    box-shadow: 0 4px 30px rgba(0, 255, 136, 0.15);
    position: relative;
}
.header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.logo {
    font-size: 28px; font-weight: 900; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 255, 136, 0.3);
    letter-spacing: 2px;
}
.logo-icon { font-size: 32px; filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5)); }
.header-sub { font-size: 14px; opacity: 0.7; margin-top: 6px; color: #88ffbb; letter-spacing: 1px; }

/* ===== 安全バナー ===== */
.safety-banner {
    background: #1a1a0a; color: #cccc44; padding: 10px 0;
    font-size: 13px; text-align: center; border-bottom: 1px solid #333300;
}

/* ===== カテゴリカード ===== */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.category-card {
    border-radius: 4px; padding: 28px 20px; text-align: center; cursor: pointer;
    transition: all 0.3s ease; color: #fff; position: relative; overflow: hidden;
    border: 1px solid transparent; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.category-card::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0, 255, 136, 0.03); opacity: 0; transition: opacity 0.3s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(0, 255, 136, 0.2); }
.category-card:hover::before { opacity: 1; }
.category-card.kakao { background: #1a1a0a; border-color: #fee50066; }
.category-card.line { background: #0a1a0f; border-color: #06c75566; }
.category-card.email { background: #0a0f1a; border-color: #4a90d966; }
.category-card.insta { background: #1a0a15; border-color: #dc274366; }
.card-icon { font-size: 48px; margin-bottom: 12px; filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3)); }
.category-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.category-card p { font-size: 13px; opacity: 0.6; }
.post-count {
    display: inline-block; margin-top: 10px; font-size: 12px;
    background: rgba(0, 255, 136, 0.15); border: 1px solid #00ff8833;
    padding: 3px 12px; border-radius: 2px; font-weight: 500; color: #00ff88;
}

/* ===== 使い方 ===== */
.how-to-use { margin-top: 32px; }
.section-title {
    font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 2px solid #00ff88; display: inline-block; color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.steps { display: flex; gap: 16px; margin-top: 8px; }
.step {
    flex: 1; display: flex; gap: 12px; align-items: flex-start;
    background: #111118; padding: 16px; border-radius: 4px;
    border: 1px solid #222; transition: border-color 0.3s;
}
.step:hover { border-color: #00ff8844; }
.step-num {
    width: 32px; height: 32px; background: #00ff88; color: #0a0a0a;
    border-radius: 2px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.step strong { font-size: 14px; display: block; margin-bottom: 2px; color: #ddd; }
.step p { font-size: 12px; color: #666; }

/* ===== 最新投稿 ===== */
.recent-section { margin-top: 32px; margin-bottom: 32px; }

/* ===== 掲示板画面 ===== */
.back-btn {
    background: none; border: 1px solid #333; padding: 8px 20px; border-radius: 2px;
    cursor: pointer; font-size: 14px; font-weight: 500; color: #00ff88;
    margin-top: 20px; transition: all 0.2s;
}
.back-btn:hover { border-color: #00ff88; box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); }
.board-header {
    display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 20px;
    background: #111118; border-radius: 4px; border: 1px solid #222;
}
.board-icon { font-size: 40px; }
.board-header h2 { font-size: 24px; font-weight: 700; color: #00ff88; }

/* ===== 投稿フォーム ===== */
.post-form {
    background: #111118; border-radius: 4px; padding: 24px; margin-top: 16px;
    border: 1px solid #222; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.post-form h3 { font-size: 18px; margin-bottom: 16px; font-weight: 700; color: #00ff88; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: #888; }
.required { color: #ff4444; }
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 12px; border: 1px solid #333; border-radius: 4px;
    font-size: 15px; font-family: inherit; transition: all 0.2s; outline: none;
    width: 100%; background: #0a0a0a; color: #d0d0d0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #00ff88; box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}
.form-group textarea { resize: vertical; }
.char-count { font-size: 12px; color: #555; text-align: right; }

/* QRアップロード */
.qr-upload-area { border: 1px dashed #333; border-radius: 4px; overflow: hidden; transition: border-color 0.2s; }
.qr-upload-area.dragover { border-color: #00ff88; background: #0a1a0f; }
.qr-upload-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px; cursor: pointer; color: #555; font-size: 13px; text-align: center;
}
.qr-upload-placeholder:hover { color: #00ff88; }
.qr-upload-icon { font-size: 28px; }
.qr-upload-hint { font-size: 11px; color: #444; }
.qr-preview-wrapper { position: relative; display: inline-block; padding: 12px; text-align: center; width: 100%; }
.qr-preview-wrapper img { max-width: 160px; max-height: 160px; border-radius: 4px; border: 1px solid #333; }
.qr-remove-btn {
    position: absolute; top: 4px; right: 4px; width: 28px; height: 28px;
    background: #ff4444; color: #fff; border: none; border-radius: 2px;
    font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qr-remove-btn:hover { background: #cc0000; }

/* 同意 */
.terms-agree { margin-top: 14px; font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #888; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #00ff88; }
.checkbox-label a { color: #00ff88; text-decoration: underline; }
.submit-btn {
    display: block; width: 100%; margin-top: 16px; padding: 14px;
    background: #00ff88; color: #0a0a0a; border: none; border-radius: 4px;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s;
    font-family: inherit; text-transform: uppercase; letter-spacing: 2px;
}
.submit-btn:hover { box-shadow: 0 0 30px rgba(0, 255, 136, 0.4); background: #00dd77; }
.submit-btn:active { transform: scale(0.98); }

/* ===== フィルター ===== */
.filter-bar { display: flex; gap: 12px; margin-top: 16px; }
.filter-bar select {
    padding: 8px 12px; border: 1px solid #333; border-radius: 4px;
    font-size: 14px; font-family: inherit; outline: none;
    background: #111118; color: #d0d0d0; cursor: pointer; flex: 1;
}
.filter-bar select:focus { border-color: #00ff88; }

/* ===== 投稿一覧 ===== */
.posts-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.post-card {
    background: #111118; border-radius: 4px; padding: 20px;
    border: 1px solid #1a1a2e; transition: all 0.3s; position: relative;
}
.post-card:hover { border-color: #00ff8833; box-shadow: 0 0 20px rgba(0, 255, 136, 0.08); }
.post-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-avatar {
    width: 44px; height: 44px; border-radius: 2px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.post-avatar.male { background: #0a1525; border: 1px solid #1a3050; }
.post-avatar.female { background: #1a0a15; border: 1px solid #3a1a30; }
.post-avatar.other { background: #0f0f1a; border: 1px solid #2a2a40; }
.post-info { flex: 1; min-width: 0; }
.post-name { font-weight: 700; font-size: 16px; color: #eee; }
.post-meta { font-size: 12px; color: #666; margin-top: 2px; }
.post-badge {
    display: inline-block; padding: 3px 10px; border-radius: 2px;
    font-size: 11px; font-weight: 700; color: #fff;
}
.post-badge.kakao { background: #555500; color: #fee500; }
.post-badge.line { background: #003311; color: #06c755; }
.post-badge.email { background: #0a1a33; color: #4a90d9; }
.post-badge.insta { background: #330a15; color: #f09433; }
.post-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 2px; background: #1a1a2e; color: #888; font-weight: 500; }
.post-message { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #aaa; white-space: pre-wrap; word-break: break-word; }
.post-contact {
    margin-top: 12px; padding: 10px 16px;
    background: #0a1a0f; border: 1px solid #00ff8822;
    border-radius: 4px; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.post-contact strong { color: #00ff88; }
.post-contact .contact-value { font-weight: 500; word-break: break-all; color: #ccc; }
.copy-btn {
    margin-left: auto; padding: 4px 12px; border: 1px solid #00ff88;
    background: none; color: #00ff88; border-radius: 2px; cursor: pointer;
    font-size: 12px; font-weight: 500; transition: all 0.2s; font-family: inherit; flex-shrink: 0;
}
.copy-btn:hover { background: #00ff88; color: #0a0a0a; box-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }

/* QR表示 */
.post-qr { margin-top: 10px; text-align: center; }
.post-qr img { max-width: 120px; max-height: 120px; border-radius: 4px; border: 1px solid #333; cursor: pointer; transition: all 0.2s; }
.post-qr img:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); }
.post-qr-label { font-size: 11px; color: #555; margin-top: 4px; }
.post-time { font-size: 11px; color: #444; margin-top: 10px; text-align: right; }
.post-delete {
    position: absolute; top: 12px; right: 12px; background: none; border: none;
    color: #333; cursor: pointer; font-size: 18px; padding: 4px; line-height: 1; transition: color 0.2s;
}
.post-delete:hover { color: #ff4444; text-shadow: 0 0 8px rgba(255, 68, 68, 0.5); }
.no-posts { text-align: center; padding: 48px 20px; color: #555; font-size: 16px; }

/* ===== 広告 ===== */
.ad-section { margin-top: 24px; position: relative; }
.ad-section.ad-inline { margin-top: 16px; }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.ad-banner {
    display: flex; flex-direction: column; background: #111118; border-radius: 4px; overflow: hidden;
    text-decoration: none; color: #d0d0d0; border: 1px solid #222; transition: all 0.3s;
}
.ad-banner:hover { transform: translateY(-3px); border-color: #00ff8833; box-shadow: 0 0 20px rgba(0, 255, 136, 0.1); }
.ad-thumb { height: 100px; overflow: hidden; }
.ad-thumb-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ad-thumb-icon { font-size: 42px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.matching-bg { background: linear-gradient(135deg, #330a15, #1a0520); }
.live-bg { background: linear-gradient(135deg, #1a0a33, #0a0a2e); }
.chat-bg { background: linear-gradient(135deg, #0a1a25, #051520); }
.ad-body { padding: 12px 14px; }
.ad-tag { display: inline-block; font-size: 10px; font-weight: 700; background: #1a1a2e; color: #00ff88; padding: 2px 8px; border-radius: 2px; margin-bottom: 6px; }
.ad-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #ddd; }
.ad-desc { font-size: 12px; color: #666; line-height: 1.5; }
.ad-cta { margin-top: 8px; font-size: 13px; font-weight: 700; color: #00ff88; }
.ad-banner-wide {
    display: flex; align-items: center; background: #111118; border-radius: 4px; overflow: hidden;
    text-decoration: none; color: #d0d0d0; border: 1px solid #222; transition: all 0.3s; gap: 0;
}
.ad-banner-wide:hover { transform: translateY(-2px); border-color: #00ff8833; }
.ad-wide-thumb { width: 80px; min-height: 80px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ad-wide-body { flex: 1; padding: 12px 16px; }
.ad-wide-cta {
    padding: 0 16px; font-size: 13px; font-weight: 700; color: #0a0a0a;
    background: #00ff88; align-self: stretch; display: flex; align-items: center; white-space: nowrap;
}

/* ===== トースト ===== */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #00ff88; color: #0a0a0a; padding: 12px 28px; border-radius: 4px;
    font-size: 14px; font-weight: 700; z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4); animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* 関連サイト */
.related-sites { background: #0d0d0d; padding: 20px 0; margin-top: 32px; border-top: 1px solid #222; }
.related-sites h3 { font-size: 14px; color: #555; margin-bottom: 10px; }
.related-links { display: flex; gap: 16px; flex-wrap: wrap; }
.related-links a { font-size: 13px; color: #00ff88; text-decoration: none; }
.related-links a:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }

/* ===== フッター ===== */
.footer {
    margin-top: auto; background: #050508; color: #555;
    text-align: center; padding: 24px 0; font-size: 14px; border-top: 1px solid #111;
}
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 12px; font-size: 13px; }
.footer-links a { color: #00ff88; text-decoration: underline; cursor: pointer; }
.footer-links a:hover { color: #88ffbb; text-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
.footer-links span { color: #333; }
.footer-note { font-size: 11px; margin-top: 10px; opacity: 0.5; line-height: 1.6; }

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
    .header { padding: 20px 0 16px; }
    .logo { font-size: 22px; }
    .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
    .category-card { padding: 20px 12px; }
    .card-icon { font-size: 36px; margin-bottom: 8px; }
    .category-card h2 { font-size: 14px; }
    .category-card p { font-size: 11px; }
    .steps { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; gap: 8px; }
    .board-header h2 { font-size: 18px; }
    .post-contact { flex-direction: column; align-items: flex-start; gap: 6px; }
    .copy-btn { margin-left: 0; }
    .modal { padding: 24px 20px; }
    .safety-banner { font-size: 12px; }
    .ad-grid { grid-template-columns: 1fr; }
    .ad-grid-3 { grid-template-columns: 1fr; }
    .ad-banner-wide { flex-direction: column; }
    .ad-wide-thumb { width: 100%; min-height: 60px; }
    .ad-wide-cta { width: 100%; justify-content: center; padding: 10px; }
}
