/* 全体のスタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f8f9fa;
}

/* ナビゲーションバー */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* カード */
.card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
}

/* フォーム */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ボタン */
.btn {
    border-radius: 4px;
}

/* アラート */
.alert {
    border-radius: 4px;
}

/* フッター */
footer {
    border-top: 1px solid #dee2e6;
}

/* QRコード関連 */
.qrcode-container {
    max-width: 300px;
    margin: 0 auto;
}

/* 掲示板・回覧板 */
.bulletin-title, .circular-title {
    font-weight: bold;
}

.bulletin-meta, .circular-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.bulletin-content, .circular-content {
    margin-top: 15px;
    margin-bottom: 15px;
}

.bulletin-attachment, .circular-attachment {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 15px;
}

/* チャット */
.chat-container {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.chat-message-self {
    background-color: #d1e7fd;
    margin-left: 20%;
}

.chat-message-other {
    background-color: #f8f9fa;
    margin-right: 20%;
}

.chat-message-header {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.chat-input {
    margin-top: 15px;
}

/* カレンダー */
.fc-event {
    cursor: pointer;
}

/* レスポンシブ調整 */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .chat-message-self {
        margin-left: 10%;
    }
    
    .chat-message-other {
        margin-right: 10%;
    }
    
    /* テーブルのレスポンシブ対応 */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* カードのパディング調整 */
    .card-body {
        padding: 0.75rem;
    }
    
    /* アクションボタンのサイズ調整 */
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* フォーム要素のサイズ調整 */
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 0.375rem 0.5rem;
    }
    
    /* アンケート関連のレスポンシブ対応 */
    .chart-container {
        height: 250px !important;
    }
}

@media (max-width: 768px) {
    /* ヘッダーのボタンサイズ調整 */
    .d-flex.justify-content-between.align-items-center .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* ボタングループの縦積み */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.justify-content-between.align-items-center div {
        margin-top: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* カード内のテーブル調整 */
    .table th, .table td {
        padding: 0.5rem;
    }
    
    /* アンケート結果の表示調整 */
    .text-answers .list-group-item {
        padding: 0.75rem;
    }
    
    /* フォーム要素の間隔調整 */
    .form-group + .form-group {
        margin-top: 1rem;
    }
}

/* 添付ファイル */
.attachment-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}