/* 基本フォントサイズ：スマホで読みやすいよう大きめに設定 */
body {
  font-size: 17px;
  font-family: 'メイリオ', 'MS ゴシック', sans-serif;
  background-color: #f5f7fa;
}

/* ナビゲーション */
.nav-link-lg {
  font-size: 1.05rem;
  padding: 0.5rem 1rem !important;
}

/* 見出し */
h1, h2, h3 { font-weight: bold; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }

/* ボタン：大きく、押しやすく */
.btn {
  font-size: 1rem;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
}
.btn-xl {
  font-size: 1.3rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
}
.btn-lg {
  font-size: 1.15rem;
  padding: 0.7rem 1.6rem;
}

/* フォーム */
.form-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.form-control, .form-select, textarea {
  font-size: 1.05rem;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
}
.form-control:focus, .form-select:focus, textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* テーブル */
.table {
  font-size: 1rem;
}
.table th {
  font-weight: bold;
  background-color: #f0f0f0;
}

/* リスト */
.list-group-item {
  font-size: 1rem;
  padding: 1rem;
}

/* カード */
.card {
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: none;
}

/* アバター */
.avatar-xs {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.avatar-xs.avatar-initial { font-size: 0.65rem; color: white; font-weight: bold; }

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.avatar-md {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar-initial {
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}
.avatar-sm.avatar-initial { font-size: 0.8rem; }
.avatar-md.avatar-initial { font-size: 1rem; }
.avatar-lg.avatar-initial { font-size: 2rem; }

/* チャット風返信スタイル */
.reply-list {
  background: #f0f3f6;
  padding: 6px 8px;
  border-top: 1px solid #dee2e6;
}
.reply-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  flex-direction: row-reverse;
}
.reply-content {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.reply-item .avatar-xs {
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.reply-item + .reply-item {
  border-top: 1px dashed #dee2e6;
}
.reply-bubble {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
  display: inline-block;
  max-width: 100%;
}
.reply-meta {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 2px;
}
.reply-input-row {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid #dee2e6;
}
.reply-input-row textarea {
  font-size: 0.95rem;
  resize: none;
  flex: 1;
}
.note-meta {
  font-size: 0.7rem;
  color: #6c757d;
}

/* メモ省略（改行保持しつつ N 行で省略） */
.notes-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
  word-break: break-word;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container-fluid {
    padding: 0.5rem !important;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
}
