/* 沖縄ハッテン掲示板 - フロントエンドスタイル（テーマスタイル適用） */

/* 基本レイアウト */
body {
    background-color: #000000;
    color: #ff0000;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.bb-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.bb-header {
    background: transparent;
    color: #ff0000;
    padding: 20px 0;
    margin-bottom: 30px;
}

.bb-site-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.3);
    text-align: center;
}

.bb-site-title a {
    color: #ff0000;
    text-decoration: none;
}

.bb-site-title a:hover {
    color: #ff0000;
}

.bb-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.bb-nav-link {
    background-color: #333333;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-decoration: none;
    display: block;
}

.bb-nav-link:hover {
    background-color: #ff0000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

/* メインコンテンツ */
.bb-main {
    min-height: 500px;
    margin-bottom: 30px;
}

.bb-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #ffffff;
}

.bb-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: transparent;
    border-radius: 8px;
}

.bb-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.3);
    flex: 1;
    text-align: left;
}

.bb-post-button-container {
    display: flex;
    justify-content: center;
}

.bb-post-button-bottom {
    margin-top: 30px;
    justify-content: center;
}

.bb-post-button {
    background-color: #333333;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.bb-post-button:hover {
    background-color: #ff0000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.bb-post-button:active {
    transform: translateY(0);
}

/* ボタン */
.bb-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.bb-button-primary {
    background: #ff0000;
    color: white;
}

.bb-button-primary:hover {
    background: #c0392b;
    color: white;
}

.bb-button-secondary {
    background: #95a5a6;
    color: white;
}

.bb-button-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.bb-button-danger {
    background: #e74c3c;
    color: white;
}

.bb-button-danger:hover {
    background: #c0392b;
    color: white;
}

.bb-button-outline {
    background: transparent;
    border: 2px solid #ff0000;
    color: #ff0000;
}

.bb-button-outline:hover {
    background: #ff0000;
    color: white;
}

.bb-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.bb-button-large {
    padding: 16px 32px;
    font-size: 18px;
}

.bb-button-reply {
    background: #ff4d6a;
    color: #ffffff;
    border: 2px solid #ff4d6a;
    border-bottom: 4px solid #e0304d;
    transition: transform 0.1s;
}

.bb-button-reply:hover {
    background: #ff6d84;
    color: #000000;
}

.bb-button-reply:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

/* 投稿一覧 */
.bb-posts {
    margin-bottom: 30px;
}

.bb-post {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    margin: 0.5em 0;
    border: 1px solid #444444;
}

.bb-post-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444444;
}

.bb-post-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 10px 0;
}

.bb-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bb-post-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
}

.bb-post-date {
    color: #cccccc;
    font-size: 0.9em;
    text-align: right;
    margin-left: auto;
}

.bb-post-profile {
    color: #cccccc;
    font-size: 0.9em;
    margin: 5px 0 0 0;
    text-align: left;
}

.bb-profile-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bb-profile-item {
    background: rgba(255, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    color: #ff9999;
}

/* プロフィール入力フィールド */
.bb-profile-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.bb-profile-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.bb-profile-field-label {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 3px;
}

.bb-profile-input,
.bb-profile-select {
    width: 80px;
    text-align: center;
    background: #2a2a2a;
    border: 1px solid #444444;
    color: #ffffff;
    padding: 8px;
    border-radius: 4px;
}

.bb-profile-input:focus,
.bb-profile-select:focus {
    border-color: #ff0000;
    outline: none;
    background: #333333;
}

.bb-profile-unit {
    font-size: 0.9em;
    color: #cccccc;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .bb-profile-fields {
        flex-direction: column;
        gap: 10px;
    }
    
    .bb-profile-field {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        width: 100%;
    }
    
    .bb-profile-input,
    .bb-profile-select {
        width: 100px;
    }
}

.bb-post-content {
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: left;
}

.bb-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.bb-post-profile-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 4px;
    border-left: 3px solid #ff0000;
    font-size: 0.85em;
}

.bb-profile-labels {
    color: #cccccc;
    font-weight: 500;
    margin: 0;
}

.bb-profile-values {
    color: #ff9999;
    font-weight: 600;
    margin: 0;
    font-size: 1.1em;
    text-align: center;
}

.bb-post-actions {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.bb-delete-link {
    color: #ff4d6a;
    text-decoration: underline;
    font-size: 0.9em;
}

.bb-delete-link:hover {
    color: #ff6d84;
}

.bb-reply-button,
.bb-show-replies-button,
.bb-delete-post-button {
    background-color: #333333;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.bb-reply-button:hover,
.bb-show-replies-button:hover,
.bb-delete-post-button:hover {
    background-color: #ff0000;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.bb-reply-button:active,
.bb-show-replies-button:active,
.bb-delete-post-button:active {
    transform: translateY(0);
}

/* 返信 */
.bb-replies {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.bb-reply {
    background: #333333;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #ff0000;
}

.bb-reply-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.bb-reply-name {
    font-weight: 600;
    color: #ffffff;
}

.bb-reply-date {
    color: #cccccc;
}

.bb-reply-profile {
    color: #cccccc;
}

.bb-reply-content {
    line-height: 1.6;
    color: #ffffff;
}

.bb-no-replies {
    color: #cccccc;
    font-style: italic;
}

/* フォーム */
.bb-form-container {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #ffffff;
}

.bb-form {
    max-width: 600px;
    margin: 0 auto;
}

.bb-form-group {
    margin-bottom: 25px;
}

.bb-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.bb-required {
    color: #e74c3c;
}

.bb-form-input,
.bb-form-textarea,
.bb-form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #444444;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #2a2a2a;
    color: #ffffff;
}

.bb-form-input:focus,
.bb-form-textarea:focus,
.bb-form-select:focus {
    outline: none;
    border-color: #ff0000;
}

.bb-form-textarea {
    resize: vertical;
}

.bb-form-help {
    margin-top: 5px;
    color: #cccccc;
    font-size: 0.9em;
}

.bb-form-note {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #ff0000;
}

.bb-form-note h4 {
    margin-top: 0;
    color: #ffffff;
}

.bb-form-note ul {
    margin-bottom: 0;
}

.bb-form-note li {
    margin-bottom: 8px;
    color: #ffffff;
}

/* 元の投稿表示 */
.bb-original-post {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #ff0000;
}

.bb-original-post h3 {
    margin-top: 0;
    color: #ffffff;
}

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

.bb-pagination-link,
.bb-pagination-current {
    padding: 10px 15px;
    border: 2px solid #ff0000;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.bb-pagination-link {
    color: #ff0000;
    background: #2a2a2a;
}

.bb-pagination-link:hover {
    background: #ff0000;
    color: #000000;
}

.bb-pagination-current {
    background: #ff0000;
    color: #000000;
}

/* 投稿なしメッセージ */
.bb-no-posts {
    text-align: center;
    padding: 40px;
    color: #cccccc;
}

/* フッター */
.bb-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    border-radius: 8px;
    margin-top: 30px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .bb-container {
        padding: 0 10px;
    }
    
    .bb-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .bb-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .bb-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .bb-nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .bb-post-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bb-post-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .bb-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .bb-form-container {
        padding: 20px;
    }
    
    .bb-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .bb-site-title {
        font-size: 2em;
    }
    
    .bb-page-title {
        font-size: 1.5em;
    }
    
    .bb-content {
        padding: 20px;
    }
    
    .bb-post {
        padding: 10px;
    }
    
    .bb-form-container {
        padding: 15px;
    }
}

/* 認証ページ */
.bb-verification-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.bb-verification-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #ffffff;
}

.bb-verification-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.bb-verification-message {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.bb-verification-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bb-verification-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bb-verification-actions {
    margin-top: 30px;
}

/* ローディング状態 */
.bb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.bb-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* エラーメッセージ */
.bb-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* 成功メッセージ */
.bb-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* ショートコード用スタイル */
.bb-shortcode-container {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
    color: #ffffff;
}

.bb-shortcode-container .bb-post {
    background: #333333;
    margin-bottom: 15px;
}

.bb-shortcode-container .bb-post:last-child {
    margin-bottom: 0;
}

.bb-board-header {
    margin-bottom: 2em;
}

.bb-board-footer {
    margin-top: 2em;
    display: flex;
    justify-content: center;
}

.bb-board-list .bb-post {
    margin: 0.5em 0;
}

/* 管理人投稿スタイル - 通常投稿と同じ背景、名前のみ黄色 */
.bb-admin-notice .bb-post-name {
    color: #ffcc00 !important;
    font-weight: bold !important;
}

/* 年齢確認モーダル */
.bb-age-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bb-age-modal {
    background: #1a1a1a;
    border: 2px solid #ff0000;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
    animation: bb-modal-slide-in 0.3s ease-out;
}

@keyframes bb-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bb-age-modal-content {
    padding: 30px;
    color: #ffffff;
    text-align: center;
}

.bb-age-modal-title {
    color: #ff0000;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.3);
}

.bb-age-content {
    background: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    line-height: 1.6;
}

.bb-age-content > p:first-child {
    font-size: 1.1rem;
    color: #ff0000;
    margin-bottom: 20px;
    font-weight: bold;
}

.bb-age-content h3 {
    color: #ff0000;
    margin-top: 0;
    margin-bottom: 15px;
}

.bb-age-content h4 {
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.bb-age-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.bb-age-content li {
    margin-bottom: 8px;
    color: #cccccc;
}

.bb-age-content p {
    margin-bottom: 15px;
    color: #cccccc;
}

.bb-age-verification-question {
    margin: 20px 0;
    text-align: center;
}

.bb-age-verification-question p {
    margin: 0;
    font-size: 1.2rem;
    color: #ff0000;
}

.bb-age-modal-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.bb-age-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.bb-age-button-confirm {
    background-color: #333333;
    color: #ff0000;
    border-color: #ff0000;
    width: 100%;
}

.bb-age-button-confirm:hover {
    background-color: #ff0000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.bb-age-button-cancel {
    background-color: #666666;
    color: #ffffff;
    border-color: #666666;
}

.bb-age-button-cancel {
    width: 60% !important;
}

.bb-age-button-cancel:hover {
    background-color: #888888;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(136, 136, 136, 0.3);
}

.bb-age-modal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.bb-age-disclaimer {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
    margin: 0;
}

.bb-age-underage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bb-age-underage-modal .bb-age-modal-content {
    padding: 40px;
}

.bb-age-underage-modal .bb-age-modal-title {
    color: #ff0000;
    font-size: 2rem;
    margin-bottom: 20px;
}

.bb-age-underage-modal p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

/* コンテンツブラー効果 */
.bb-content-blurred {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 1;
}

/* モーダル関連要素が確実に最前面に来るようにする */
.bb-age-modal-overlay,
.bb-age-underage-modal {
    position: fixed !important;
    z-index: 999999 !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .bb-age-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .bb-age-modal-content {
        padding: 20px;
    }
    
    .bb-age-modal-title {
        font-size: 1.5rem;
    }
    
    .bb-age-modal-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .bb-age-button {
        width: 100%;
        padding: 12px 20px;
    }
    
    .bb-age-button-cancel {
        width: 60% !important;
    }
    
    .bb-age-content {
        max-height: 200px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .bb-age-modal-content {
        padding: 15px;
    }
    
    .bb-age-modal-title {
        font-size: 1.3rem;
    }
    
    .bb-age-content {
        max-height: 150px;
        padding: 10px;
    }
    
    .bb-age-verification-question p {
        font-size: 1.1rem;
    }
}